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"