diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-12-16 16:21:50 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-12-18 10:19:21 +0800 |
commit | 66bf929fa97fabb70198455f9eec2e9ccf0661fa (patch) | |
tree | df9944b43cb30900f4947c7b1ea7e777d16b0d19 /discover/udev.c | |
parent | df46fcfe4867fd16729bb10dfb82dcd43595c6c2 (diff) | |
download | petitboot-66bf929fa97fabb70198455f9eec2e9ccf0661fa.zip petitboot-66bf929fa97fabb70198455f9eec2e9ccf0661fa.tar.gz |
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 <jk@ozlabs.org>
Diffstat (limited to 'discover/udev.c')
-rw-r--r-- | discover/udev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/discover/udev.c b/discover/udev.c index 305df95..09c24fd 100644 --- a/discover/udev.c +++ b/discover/udev.c @@ -1,5 +1,7 @@ -#define _GNU_SOURCE +#if defined(HAVE_CONFIG_H) +#include "config.h" +#endif #include <assert.h> #include <errno.h> |