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/hook.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/hook.c') diff --git a/lib/hook.c b/lib/hook.c index 935064f4d2..4fe305f282 100644 --- a/lib/hook.c +++ b/lib/hook.c @@ -20,6 +20,10 @@ * DEALINGS IN THE SOFTWARE. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "memory.h" #include "hook.h" -- cgit v1.2.3