From: Lennart Poettering Date: Wed, 22 Apr 2009 02:43:31 +0000 (+0200) Subject: build-system: define _GNU_SOURCE centrally X-Git-Tag: dbus-1.3.0~4^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18b08180aa5a4417fa1d6d268a1aad894e8a4549;p=thirdparty%2Fdbus.git 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 --- diff --git a/bus/dir-watch-inotify.c b/bus/dir-watch-inotify.c index 44ec9cf01..12fdbb076 100644 --- a/bus/dir-watch-inotify.c +++ b/bus/dir-watch-inotify.c @@ -24,7 +24,6 @@ #include -#define _GNU_SOURCE #include #include #include diff --git a/configure.in b/configure.in index 0732adcdf..62312eb00 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 8b225e7e7..9631be186 100644 --- a/dbus/dbus-sysdeps-unix.c +++ b/dbus/dbus-sysdeps-unix.c @@ -22,7 +22,7 @@ * */ -#define _GNU_SOURCE +#include #include "dbus-internals.h" #include "dbus-sysdeps.h"