]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
build-system: define _GNU_SOURCE centrally
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Apr 2009 02:43:31 +0000 (04:43 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 May 2009 00:09:31 +0000 (02:09 +0200)
Instead of having everyone define _GNU_SOURCE and similar macros
seperately, simply do so centrally by using AC_USE_SYSTEM_EXTENSIONS

bus/dir-watch-inotify.c
configure.in
dbus/dbus-sysdeps-unix.c

index 44ec9cf01b1f626af5b731b812ebacba31bd61cb..12fdbb076768de39bb55030bbe1f53d9eff6e8ae 100644 (file)
@@ -24,7 +24,6 @@
 
 #include <config.h>
 
-#define _GNU_SOURCE
 #include <stdlib.h>
 #include <unistd.h>
 #include <fcntl.h>
index 0732adcdf692f64970f133c2ec1ee94e85d50834..62312eb00a251090ffaaf2a71de631278b8f76ac 100644 (file)
@@ -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
index 8b225e7e7530c5cdd74bdbe63b98c447c26ca124..9631be186b12afd1488f8f92c4a5871b07dc209c 100644 (file)
@@ -22,7 +22,7 @@
  *
  */
 
-#define _GNU_SOURCE 
+#include <config.h>
 
 #include "dbus-internals.h"
 #include "dbus-sysdeps.h"