]> git.sur5r.net Git - openldap/commitdiff
Fix previous fix: Don't #ifdef HAVE_STRNLEN before portable.h #defines that
authorHallvard Furuseth <hallvard@openldap.org>
Fri, 1 May 2009 02:17:28 +0000 (02:17 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Fri, 1 May 2009 02:17:28 +0000 (02:17 +0000)
libraries/liblber/memory.c

index edc5b7c188b4fffca3ed54fe12e2e7bb22c2bfb3..74261240c3b63a9d855ef5cd5fa3a028fa11de71 100644 (file)
@@ -13,8 +13,8 @@
  * <http://www.OpenLDAP.org/license.html>.
  */
 
-#if defined(HAVE_STRNLEN) && !defined(_GNU_SOURCE)
-#define _GNU_SOURCE 1                  /* Get strnlen() from <string.h> */
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE 1  /* Needed for <string.h> if HAVE_STRNLEN */
 #endif
 
 #include "portable.h"