From 4e3f04edc31576f5be2d8a6bcbd8a078b12e4b6b Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Fri, 1 May 2009 02:17:28 +0000 Subject: [PATCH] Fix previous fix: Don't #ifdef HAVE_STRNLEN before portable.h #defines that --- libraries/liblber/memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/liblber/memory.c b/libraries/liblber/memory.c index edc5b7c188..74261240c3 100644 --- a/libraries/liblber/memory.c +++ b/libraries/liblber/memory.c @@ -13,8 +13,8 @@ * . */ -#if defined(HAVE_STRNLEN) && !defined(_GNU_SOURCE) -#define _GNU_SOURCE 1 /* Get strnlen() from */ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE 1 /* Needed for if HAVE_STRNLEN */ #endif #include "portable.h" -- 2.39.5