From 17ea8f9e505ed0435f9300aedb980740b7d21301 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Wed, 22 May 2013 18:03:19 +0300 Subject: [PATCH] configure.ac: Enable AC_USE_SYSTEM_EXTENSIONS AC_USE_SYSTEM_EXTENSIONS enables _XOPEN_SOURCE, _GNU_SOURCE and similar macros to expose the largest extent of functionality supported by the underlying system. This is required since these macros are often limiting rather than merely additive, e.g. _XOPEN_SOURCE will actually on some systems hide declarations which are not part of the X/Open spec. Since this goes into config.h rather than the command line, ensure all source is consistently including config.h before anything else, including system libraries. This doesn't need to be guarded by a HAVE_CONFIG_H ifdef, which was only ever a hangover from the X.Org modular transition. Signed-off-by: Daniel Stone [pq: rebased and converted more files] --- src/evdev-touchpad.c | 2 ++ src/evdev.c | 2 ++ src/filter.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/evdev-touchpad.c b/src/evdev-touchpad.c index 4f9bb033..a21ae0b2 100644 --- a/src/evdev-touchpad.c +++ b/src/evdev-touchpad.c @@ -20,6 +20,8 @@ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include "config.h" + #include #include #include diff --git a/src/evdev.c b/src/evdev.c index 9289b1cd..122a2d9b 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -20,6 +20,8 @@ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include "config.h" + #include #include #include diff --git a/src/filter.c b/src/filter.c index 91e588d2..a55ebf27 100644 --- a/src/filter.c +++ b/src/filter.c @@ -20,6 +20,8 @@ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include "config.h" + #include #include #include