Update previous commit: #define _GNU_SOURCE if needed for strnlen()

This commit is contained in:
Hallvard Furuseth 2009-05-01 02:11:42 +00:00
parent 5efa186908
commit a59f93f32f

View file

@ -13,6 +13,10 @@
* <http://www.OpenLDAP.org/license.html>. * <http://www.OpenLDAP.org/license.html>.
*/ */
#if defined(HAVE_STRNLEN) && !defined(_GNU_SOURCE)
#define _GNU_SOURCE 1 /* Get strnlen() from <string.h> */
#endif
#include "portable.h" #include "portable.h"
#include <ac/stdlib.h> #include <ac/stdlib.h>