]> granicus.if.org Git - python/commitdiff
Patch #1540470, for OpenBSD 4.0. Backport candidate for 2.[34].
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 5 Sep 2006 02:57:01 +0000 (02:57 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 5 Sep 2006 02:57:01 +0000 (02:57 +0000)
Lib/test/test_fcntl.py
Lib/test/test_tempfile.py
Misc/NEWS
configure
configure.in

index 58a57b51a61f4d8e1b4dac3a09020c55222b6428..2d800b2a5c9e5aa9b64f2413c8b1d7c1a8c30ad8 100755 (executable)
@@ -25,7 +25,7 @@ if sys.platform in ('netbsd1', 'netbsd2', 'netbsd3',
                     'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
                     'freebsd6', 'freebsd7',
                     'bsdos2', 'bsdos3', 'bsdos4',
-                    'openbsd', 'openbsd2', 'openbsd3'):
+                    'openbsd', 'openbsd2', 'openbsd3', 'openbsd4'):
     if struct.calcsize('l') == 8:
         off_t = 'l'
         pid_t = 'i'
index aeaa77ef56f5bd510c310438421c7497573e8d0a..2047a6364ef72d5c9d7238c533bff1f24ef5222a 100644 (file)
@@ -27,7 +27,7 @@ has_spawnl = hasattr(os, 'spawnl')
 # number of files that can be opened at one time (see ulimit -n)
 if sys.platform == 'mac':
     TEST_FILES = 32
-elif sys.platform == 'openbsd3':
+elif sys.platform in ('openbsd3', 'openbsd4'):
     TEST_FILES = 48
 else:
     TEST_FILES = 100
index eab647e6155f9b3ae9331378c16d9005c4e4d3d0..880659bad6ffdabc23a87fec48ac9b2522b8ff77 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -59,6 +59,8 @@ Documentation
 Build
 -----
 
+- Patch #1540470, for OpenBSD 4.0.
+
 
 C API
 -----
index 5bbccce72aed94ed2ec2b9feea013db209d546b4..b96349a4f596694cd46e11b019963cbf77f6791a 100755 (executable)
--- a/configure
+++ b/configure
@@ -1553,7 +1553,7 @@ case $ac_sys_system/$ac_sys_release in
   # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
   # even though select is a POSIX function. Reported by J. Ribbens.
   # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
-  OpenBSD/2.* | OpenBSD/3.[0123456789])
+  OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0])
     define_xopen_source=no;;
   # On Solaris 2.6, sys/wait.h is inconsistent in the usage
   # of union __?sigval. Reported by Stuart Bishop.
index 56212a7a840948190e56d4a44bb74b5df2107c6b..cff71941b51f6f8997bc268628f267323910360a 100644 (file)
@@ -201,7 +201,7 @@ case $ac_sys_system/$ac_sys_release in
   # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
   # even though select is a POSIX function. Reported by J. Ribbens.
   # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
-  OpenBSD/2.* | OpenBSD/3.@<:@0123456789@:>@) 
+  OpenBSD/2.* | OpenBSD/3.@<:@0123456789@:>@ | OpenBSD/4.@<:@0@:>@
     define_xopen_source=no;;
   # On Solaris 2.6, sys/wait.h is inconsistent in the usage
   # of union __?sigval. Reported by Stuart Bishop.