From: Hallvard Furuseth Date: Fri, 1 May 2009 02:11:42 +0000 (+0000) Subject: Update previous commit: #define _GNU_SOURCE if needed for strnlen() X-Git-Tag: ACLCHECK_0~586 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a59f93f32fb9288d83a8434d6e647e68e63eee67;p=openldap Update previous commit: #define _GNU_SOURCE if needed for strnlen() --- diff --git a/libraries/liblber/memory.c b/libraries/liblber/memory.c index 933b6fb775..edc5b7c188 100644 --- a/libraries/liblber/memory.c +++ b/libraries/liblber/memory.c @@ -13,6 +13,10 @@ * . */ +#if defined(HAVE_STRNLEN) && !defined(_GNU_SOURCE) +#define _GNU_SOURCE 1 /* Get strnlen() from */ +#endif + #include "portable.h" #include