]> granicus.if.org Git - python/commitdiff
Issue #4368: Don't define _XOPEN_SOURCE on FreeBSD 4.*.
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 13 Dec 2008 14:13:52 +0000 (14:13 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 13 Dec 2008 14:13:52 +0000 (14:13 +0000)
Misc/NEWS
configure
configure.in

index 6b7aa3aba501f4801d56b3f91a2cfd3330f0c435..97efe211e579f810349d22506b30a3139e30e4d7 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -260,6 +260,8 @@ Documentation
 Build
 -----
 
+- Issue #4368: Don't define _XOPEN_SOURCE on FreeBSD 4.*.
+
 Windows
 -------
 
index f7e681a9c7eac4255145e0e7b5b0787085a7970b..23f66bcd78dc245560c436237b211f7ee7464800 100755 (executable)
--- a/configure
+++ b/configure
@@ -2032,11 +2032,14 @@ _ACEOF
   # but used in struct sockaddr.sa_family. Reported by Tim Rice.
   SCO_SV/3.2)
     define_xopen_source=no;;
-  # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
+  # On FreeBSD 4 and MacOS X 10.2, a bug in ncurses.h means that
   # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
   # this is fixed in 10.3, which identifies itself as Darwin/7.*
-  # This should hopefully be fixed in FreeBSD 4.9
-  FreeBSD/4.8* | Darwin/6* )
+  # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
+  # disables platform specific features beyond repair.
+  # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
+  # has no effect, don't bother defining them
+  FreeBSD/4.* | Darwin/[6789].*)
     define_xopen_source=no;;
   # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
   # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
@@ -2048,13 +2051,6 @@ _ACEOF
       define_xopen_source=no
     fi
     ;;
-  # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
-  # disables platform specific features beyond repair.
-  # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
-  # has no effect, don't bother defining them
-  Darwin/[789].*)
-    define_xopen_source=no
-    ;;
 
 esac
 
index cdd1773d699dda5c59580e4312e41068c2d008be..3d7974e09e43134760d3e1ca3bdc97a0c8250f04 100644 (file)
@@ -226,11 +226,14 @@ case $ac_sys_system/$ac_sys_release in
   # but used in struct sockaddr.sa_family. Reported by Tim Rice.
   SCO_SV/3.2)
     define_xopen_source=no;;
-  # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
+  # On FreeBSD 4 and MacOS X 10.2, a bug in ncurses.h means that
   # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
   # this is fixed in 10.3, which identifies itself as Darwin/7.*
-  # This should hopefully be fixed in FreeBSD 4.9
-  FreeBSD/4.8* | Darwin/6* )
+  # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
+  # disables platform specific features beyond repair.
+  # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 
+  # has no effect, don't bother defining them
+  FreeBSD/4.* | Darwin/@<:@6789@:>@.*)
     define_xopen_source=no;;
   # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
   # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
@@ -242,13 +245,6 @@ case $ac_sys_system/$ac_sys_release in
       define_xopen_source=no
     fi
     ;;
-  # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
-  # disables platform specific features beyond repair.
-  # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 
-  # has no effect, don't bother defining them
-  Darwin/@<:@789@:>@.*)
-    define_xopen_source=no
-    ;;
 
 esac