[PATCH libpciaccess 5/5] linux: Remove no longer needed _GNU_SOURCE define.

Emil Velikov emil.l.velikov at gmail.com
Tue Feb 10 06:55:23 PST 2015

With earlier commit we're including config.h before the system headers.
As such we no longer require the extra define as it is handled/set via
AC_USE_SYSTEM_EXTENSIONS. Note platforms which do not use autotools but
require the define (such as Android) might need to set it explicitly.

Suggested-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
 src/linux_sysfs.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/linux_sysfs.c b/src/linux_sysfs.c
index 50d94cf..a194e8b 100644
--- a/src/linux_sysfs.c
+++ b/src/linux_sysfs.c
@@ -32,8 +32,6 @@
  * \author Ian Romanick <idr at us.ibm.com>
-#define _GNU_SOURCE
 #include "config.h"

More information about the xorg-devel mailing list