]> git.sur5r.net Git - openldap/commitdiff
Update previous commit: #define _GNU_SOURCE if needed for strnlen()
authorHallvard Furuseth <hallvard@openldap.org>
Fri, 1 May 2009 02:11:42 +0000 (02:11 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Fri, 1 May 2009 02:11:42 +0000 (02:11 +0000)
libraries/liblber/memory.c

index 933b6fb7751e471fdcaeaaeed3e13e79dd1c3e35..edc5b7c188b4fffca3ed54fe12e2e7bb22c2bfb3 100644 (file)
  * <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 <ac/stdlib.h>