diff options
author | drochner <drochner> | 2003-04-15 16:52:28 +0000 |
---|---|---|
committer | drochner <drochner> | 2003-04-15 16:52:28 +0000 |
commit | 4f1e69694ee8bd7c412bfeb5163bf685b28fa045 (patch) | |
tree | 383bfe8662eb6e01b7c7a2e3c053b28c439ef9c6 /lang/python21/patches | |
parent | 9e9d878201cbb4359caf07cf30aeed91d5b36c73 (diff) | |
download | pkgsrc-4f1e69694ee8bd7c412bfeb5163bf685b28fa045.tar.gz |
Make the fcntl(F_WRLCK) selftest work on alpha etc here as well - not as
clean as in the Python-2.2 version because 2.1 doesn't have a "long long"
for struct packing, but good enough because these fields are "0" anyway.
Diffstat (limited to 'lang/python21/patches')
-rw-r--r-- | lang/python21/patches/patch-bb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/python21/patches/patch-bb b/lang/python21/patches/patch-bb new file mode 100644 index 00000000000..f23f603c229 --- /dev/null +++ b/lang/python21/patches/patch-bb @@ -0,0 +1,13 @@ +$NetBSD: patch-bb,v 1.1 2003/04/15 16:52:28 drochner Exp $ + +--- Lib/test/test_fcntl.py.orig 2003-04-15 15:46:49.000000000 +0200 ++++ Lib/test/test_fcntl.py 2003-04-15 15:48:42.000000000 +0200 +@@ -20,7 +20,7 @@ + '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: |