diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-04-22 04:43:31 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-05-20 02:09:31 +0200 |
commit | 18b08180aa5a4417fa1d6d268a1aad894e8a4549 (patch) | |
tree | da9c4bb6184de65166f7a717c8ff60f120f38698 | |
parent | 44f3a1465a5a3f6d2e022409a960443441662629 (diff) |
build-system: define _GNU_SOURCE centrally
Instead of having everyone define _GNU_SOURCE and similar macros
seperately, simply do so centrally by using AC_USE_SYSTEM_EXTENSIONS
-rw-r--r-- | bus/dir-watch-inotify.c | 1 | ||||
-rw-r--r-- | configure.in | 1 | ||||
-rw-r--r-- | dbus/dbus-sysdeps-unix.c | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/bus/dir-watch-inotify.c b/bus/dir-watch-inotify.c index 44ec9cf0..12fdbb07 100644 --- a/bus/dir-watch-inotify.c +++ b/bus/dir-watch-inotify.c @@ -24,7 +24,6 @@ #include <config.h> -#define _GNU_SOURCE #include <stdlib.h> #include <unistd.h> #include <fcntl.h> diff --git a/configure.in b/configure.in index 0732adcd..62312eb0 100644 --- a/configure.in +++ b/configure.in @@ -57,6 +57,7 @@ AC_SUBST(DBUS_VERSION) AC_PROG_CC AM_PROG_CC_C_O AC_PROG_CXX +AC_USE_SYSTEM_EXTENSIONS AC_ISC_POSIX AC_HEADER_STDC AC_C_INLINE diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c index 8b225e7e..9631be18 100644 --- a/dbus/dbus-sysdeps-unix.c +++ b/dbus/dbus-sysdeps-unix.c @@ -22,7 +22,7 @@ * */ -#define _GNU_SOURCE +#include <config.h> #include "dbus-internals.h" #include "dbus-sysdeps.h" |