From 1067b92068e1677588105f522e0bd5dbc81891e5 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Thu, 19 Jan 2017 15:21:34 +0000 Subject: [PATCH] _GNU_SOURCE should be defined before including any headers per https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html "These directives must come before any #include of a system header file." This actually causes a problem when compiling with newlib headers. --- src/poolvendor.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/poolvendor.c b/src/poolvendor.c index ec25f9d4..adb84d82 100644 --- a/src/poolvendor.c +++ b/src/poolvendor.c @@ -5,15 +5,14 @@ * for further information */ -#include -#include -#include - /* we need FNM_CASEFOLD */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif +#include +#include +#include #include #include "pool.h" -- 2.47.2