From a59f93f32fb9288d83a8434d6e647e68e63eee67 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Fri, 1 May 2009 02:11:42 +0000 Subject: [PATCH] Update previous commit: #define _GNU_SOURCE if needed for strnlen() --- libraries/liblber/memory.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5