From 4a0b41ee31bdc67c56f672f6e0a64c42bf34c1ae Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 18 Feb 2013 14:30:22 +0000 Subject: [PATCH] Include config.h as the first thing in every .c file ...except for CheckForAbstractSockets.c, which runs before config.h is generated, and sd-daemon.c, which is externally-maintained. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=59971 Signed-off-by: Simon McVittie Reviewed-by: Colin Walters --- test/name-test/test-autolaunch.c | 2 ++ test/test-exit.c | 2 ++ tools/strtoll.c | 1 + tools/strtoull.c | 1 + 4 files changed, 6 insertions(+) diff --git a/test/name-test/test-autolaunch.c b/test/name-test/test-autolaunch.c index 5e51989..adbeb18 100644 --- a/test/name-test/test-autolaunch.c +++ b/test/name-test/test-autolaunch.c @@ -1,3 +1,5 @@ +#include "config.h" + #include #include #include diff --git a/test/test-exit.c b/test/test-exit.c index f335818..b4f967a 100644 --- a/test/test-exit.c +++ b/test/test-exit.c @@ -1,3 +1,5 @@ +#include "config.h" + /* This is a process that just exits with a failure code */ int main (int argc, char **argv) diff --git a/tools/strtoll.c b/tools/strtoll.c index e4f5770..7360c63 100644 --- a/tools/strtoll.c +++ b/tools/strtoll.c @@ -27,6 +27,7 @@ * SUCH DAMAGE. */ +#include "config.h" #include #ifdef HAVE_ERRNO_H diff --git a/tools/strtoull.c b/tools/strtoull.c index 459c509..3559554 100644 --- a/tools/strtoull.c +++ b/tools/strtoull.c @@ -27,6 +27,7 @@ * SUCH DAMAGE. */ +#include "config.h" #include #ifdef HAVE_ERRNO_H -- 2.7.4