summaryrefslogtreecommitdiff
path: root/lang/python21/patches/patch-bb
blob: 5ed33ad11995b2a5667713fac7bdd2f3c190b32f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-bb,v 1.3 2005/05/29 11:07:49 minskim Exp $

--- Lib/test/test_fcntl.py.orig	2001-04-11 15:58:20.000000000 -0500
+++ Lib/test/test_fcntl.py
@@ -16,11 +16,11 @@ rv = fcntl.fcntl(f.fileno(), FCNTL.F_SET
 if verbose:
     print 'Status from fnctl with O_NONBLOCK: ', rv
 
-if sys.platform in ('netbsd1', 'Darwin1.2', 'darwin1',
+if sys.platform in ('netbsd1', 'netbsd2', 'netbsd3', 'Darwin1.2', 'darwin1',
                     'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
                     'bsdos2', 'bsdos3', 'bsdos4',
                     'openbsd', 'openbsd2'):
-    lockdata = struct.pack('lxxxxlxxxxlhh', 0, 0, 0, FCNTL.F_WRLCK, 0)
+    lockdata = struct.pack('ixxxxixxxxihh', 0, 0, 0, FCNTL.F_WRLCK, 0)
 elif sys.platform in ['aix3', 'aix4', 'hp-uxB', 'unixware7']:
     lockdata = struct.pack('hhlllii', FCNTL.F_WRLCK, 0, 0, 0, 0, 0, 0)
 else: