[Mesa-dev] [PATCH 1/4] configure: Define _GNU_SOURCE for Cygwin as well

Jon Turney jon.turney at dronecode.org.uk
Mon Jun 13 14:12:30 UTC 2016


From: Yaakov Selkowitz <yselkowi at redhat.com>

Cygwin headers are now a bit more correct in handling feature test macros,
so use _GNU_SOURCE when building for Cygwin, as well.

(Notwithstanding f381c27c, we should probably have always been using
_GNU_SOURCE, since asprintf() is used by mesa in places)

Signed-off-by: Yaakov Selkowitz <yselkowi at redhat.com>
Reviewed-by: Jon Turney <jon.turney at dronecode.org.uk>
---
 configure.ac | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 33d1fef..4967c56 100644
--- a/configure.ac
+++ b/configure.ac
@@ -254,15 +254,12 @@ case "$host_os" in
 *-android)
     android=yes
     ;;
-linux*|*-gnu*|gnu*)
+linux*|*-gnu*|gnu*|cygwin*)
     DEFINES="$DEFINES -D_GNU_SOURCE"
     ;;
 solaris*)
     DEFINES="$DEFINES -DSVR4"
     ;;
-cygwin*)
-    DEFINES="$DEFINES -D_XOPEN_SOURCE=700"
-    ;;
 esac
 
 AM_CONDITIONAL(HAVE_ANDROID, test "x$android" = xyes)
-- 
2.8.3



More information about the mesa-dev mailing list