Fix previous fix: Don't #ifdef HAVE_STRNLEN before portable.h #defines that

This commit is contained in:
Hallvard Furuseth 2009-05-01 02:17:28 +00:00
parent a59f93f32f
commit 4e3f04edc3

View file

@ -13,8 +13,8 @@
* <http://www.OpenLDAP.org/license.html>.
*/
#if defined(HAVE_STRNLEN) && !defined(_GNU_SOURCE)
#define _GNU_SOURCE 1 /* Get strnlen() from <string.h> */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1 /* Needed for <string.h> if HAVE_STRNLEN */
#endif
#include "portable.h"