]> git.sur5r.net Git - openldap/blobdiff - libraries/liblber/memory.c
Update previous commit: #define _GNU_SOURCE if needed for strnlen()
[openldap] / 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>