From 66bf929fa97fabb70198455f9eec2e9ccf0661fa Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Mon, 16 Dec 2013 16:21:50 +0800 Subject: configure: Use AC_GNU_SOURCE Rather than #defining _GNU_SOURCE in our .c files, we can define this from config.h instead. Signed-off-by: Jeremy Kerr --- discover/kboot-parser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'discover/kboot-parser.c') diff --git a/discover/kboot-parser.c b/discover/kboot-parser.c index 8572674..cebe787 100644 --- a/discover/kboot-parser.c +++ b/discover/kboot-parser.c @@ -1,4 +1,6 @@ -#define _GNU_SOURCE +#if defined(HAVE_CONFIG_H) +#include "config.h" +#endif #include #include -- cgit v1.2.1