[PATCH:xfwp] Replace -D_XOPEN_SOURCE -D_BSD_SOURCE with AC_USE_SYSTEM_EXTENSIONS

Alan Coopersmith alan.coopersmith at oracle.com
Thu May 7 22:35:07 PDT 2015


Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 configure.ac |   11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/configure.ac b/configure.ac
index e607596..780e76d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,6 +27,7 @@ AC_INIT([xfwp], [1.0.3],
         [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xfwp])
 AC_CONFIG_SRCDIR([Makefile.am])
 AC_CONFIG_HEADERS([config.h])
+AC_USE_SYSTEM_EXTENSIONS
 
 # Initialize Automake
 AM_INIT_AUTOMAKE([foreign dist-bzip2])
@@ -37,16 +38,6 @@ m4_ifndef([XORG_MACROS_VERSION],
 XORG_MACROS_VERSION(1.8)
 XORG_DEFAULT_OPTIONS
 
-AC_CANONICAL_HOST
-case $host_os in
-    linux*|gnu*|*-gnu)
-	OS_CFLAGS="-D_XOPEN_SOURCE -D_BSD_SOURCE"
-	;;
-    *)
-	OS_CFLAGS=
-	;;
-esac
-
 # Checks for pkg-config packages
 PKG_CHECK_MODULES(XFWP, xproto ice xproxymngproto)
 
-- 
1.7.9.2



More information about the xorg-devel mailing list