]> git.saurik.com Git - wxWidgets.git/commitdiff
Define _GNU_SOURCE instead of _XOPEN_SOURCE (which breaks libtiff compilation)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Aug 2001 01:20:12 +0000 (01:20 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Aug 2001 01:20:12 +0000 (01:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure
configure.in

index e3089e21b4faa953df76e333affd1931d612ff08..52287b79e203c03dfb817c14a3829a066b7d2e53 100755 (executable)
--- a/configure
+++ b/configure
@@ -14809,8 +14809,8 @@ EOF
   fi
 
                 
-      if test "x$wx_lib_glibc21" = "xyes"; then
-      CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
+          if test "x$wx_lib_glibc21" = "xyes"; then
+      CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
   fi
 
   echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
index 550cea8ce172a155291b49b191d5bd214109abf8..38b5e1196155c2b91dfa0979c36470cd7a98bd65 100644 (file)
@@ -3071,10 +3071,12 @@ if test "$wxUSE_THREADS" = "yes" ; then
   dnl defined, we do it by directly assigned
   dnl PTHREAD_MUTEX_RECURSIVE_MUTEX_INITIALIZER_NP to attr
 
-  dnl we need to define _XOPEN_SOURCE=500 to get PTHREAD_MUTEX_RECURSIVE
-  dnl with glibc 2.1+, it probably shouldn't hurt elsewhere?
+  dnl we need _GNU_SOURCE to get PTHREAD_MUTEX_RECURSIVE with glibc 2.1+
+  dnl (strictly speaking we only need _XOPEN_SOURCE=500 but just defining
+  dnl this disables _BSD_SOURCE which breaks libtiff compilation, so it is
+  dnl simpler to just define _GNU_SOURCE to get everything)
   if test "x$wx_lib_glibc21" = "xyes"; then
-      CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
+      CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
   fi
 
   AC_CACHE_CHECK([for pthread_mutexattr_t], wx_cv_type_pthread_mutexattr_t,