From: Hallvard Furuseth Date: Fri, 1 May 2009 02:17:28 +0000 (+0000) Subject: Fix previous fix: Don't #ifdef HAVE_STRNLEN before portable.h #defines that X-Git-Tag: ACLCHECK_0~585 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4e3f04edc31576f5be2d8a6bcbd8a078b12e4b6b;p=openldap Fix previous fix: Don't #ifdef HAVE_STRNLEN before portable.h #defines that --- 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"