pkgsrc/lang/python15/patches/patch-af
drochner 3b80fee363 make the fcntl selftest recognize "netbsd3" so that the right
structure padding is used
not application relevant, so I abstain from bumping PKGREVISION
2005-07-29 13:27:26 +00:00

13 lines
545 B
Text

$NetBSD: patch-af,v 1.2 2005/07/29 13:27:26 drochner Exp $
--- ./Lib/test/test_fcntl.py.orig 1999-02-22 22:13:37.000000000 -0600
+++ ./Lib/test/test_fcntl.py
@@ -16,7 +16,7 @@ rv = fcntl.fcntl(f.fileno(), FCNTL.F_SET
if verbose:
print 'Status from fnctl with O_NONBLOCK: ', rv
-if sys.platform in ('netbsd1',
+if sys.platform in ('netbsd1', 'netbsd2', 'netbsd3',
'freebsd2', 'freebsd3',
'bsdos2', 'bsdos3', 'bsdos4'):
lockdata = struct.pack('lxxxxlxxxxlhh', 0, 0, 0, FCNTL.F_WRLCK, 0)