From: Jon Turney Date: Thu, 19 Jan 2017 15:21:34 +0000 (+0000) Subject: _GNU_SOURCE should be defined before including any headers X-Git-Tag: 0.6.28~8^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F209%2Fhead;p=thirdparty%2Flibsolv.git _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. --- 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"