summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2016-06-07 18:09:07 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2016-07-15 19:46:54 +0100
commit3c18c16ecf95198b88ff1049ea6c238f7f7436bd (patch)
treebe1f0ae1b7cf8e503d114ec7e53237770621761c /configure.ac
parent1fc739d28ee91c688c48901781a5198b6eb5833d (diff)
downloadexternal_mesa3d-3c18c16ecf95198b88ff1049ea6c238f7f7436bd.zip
external_mesa3d-3c18c16ecf95198b88ff1049ea6c238f7f7436bd.tar.gz
external_mesa3d-3c18c16ecf95198b88ff1049ea6c238f7f7436bd.tar.bz2
configure: Define _GNU_SOURCE for Cygwin as well
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>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 1 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index a4074ed..c1de4d8 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)