From b45ac5f5c61f98b0aacf65b456547142193ae1fc Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 28 Aug 2018 10:57:13 +0200 Subject: *: fix config.h/zebra.h include order config.h (or, transitively, zebra.h) must be the first include file listed for autoconf things like _GNU_SOURCE and _POSIX_C_SOURCE to work correctly. Signed-off-by: David Lamparter --- lib/strlcat.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/strlcat.c') diff --git a/lib/strlcat.c b/lib/strlcat.c index be211f82a8..39773d9ac8 100644 --- a/lib/strlcat.c +++ b/lib/strlcat.c @@ -20,11 +20,13 @@ /* adapted for Quagga from glibc patch submission originally from * Florian Weimer , 2016-05-18 */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include -#include "config.h" - #ifndef HAVE_STRLCAT #undef strlcat -- cgit v1.2.3