From 42d88e4c9477eb2a24c31d1b55592e0de617246a Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 27 Jul 2011 16:10:39 +0100 Subject: [PATCH] Define _GNU_SOURCE in files that need it (again) This reverts commit 18b08180aa5a4417fa1d6d268a1aad894e8a4549. --- bus/dir-watch-inotify.c | 3 +++ configure.ac | 1 - dbus/dbus-spawn.c | 2 ++ dbus/dbus-sysdeps-unix.c | 3 +++ 4 files changed, 8 insertions(+), 1 deletions(-) diff --git a/bus/dir-watch-inotify.c b/bus/dir-watch-inotify.c index 461b8ee..0190291 100644 --- a/bus/dir-watch-inotify.c +++ b/bus/dir-watch-inotify.c @@ -22,6 +22,9 @@ * */ +/* This file is Linux-specific, use GNU extensions */ +#define _GNU_SOURCE + #include #include diff --git a/configure.ac b/configure.ac index a6c8d74..99adcb5 100644 --- a/configure.ac +++ b/configure.ac @@ -60,7 +60,6 @@ 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-spawn.c b/dbus/dbus-spawn.c index a1bab3d..3741e52 100644 --- a/dbus/dbus-spawn.c +++ b/dbus/dbus-spawn.c @@ -22,6 +22,8 @@ * */ +#define _GNU_SOURCE /* use pipe2() if available */ + #include #include "dbus-spawn.h" diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c index d606371..246cba7 100644 --- a/dbus/dbus-sysdeps-unix.c +++ b/dbus/dbus-sysdeps-unix.c @@ -22,6 +22,9 @@ * */ +/* Some features used on GNU systems are considered to be GNU extensions */ +#define _GNU_SOURCE + #include #include "dbus-internals.h" -- 1.7.5.4