configure: Define _GNU_SOURCE for Cygwin as well
authorYaakov Selkowitz <yselkowi@redhat.com>
Tue, 7 Jun 2016 18:09:07 +0000 (18:09 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Fri, 15 Jul 2016 18:46:54 +0000 (19:46 +0100)
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@redhat.com>
Reviewed-by: Jon Turney <jon.turney@dronecode.org.uk>
configure.ac

index a4074ed8502c0f54242609f6a3f97e9d5e258b95..c1de4d8226c680c811d19069145b0c94b13c8a3a 100644 (file)
@@ -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)