$NetBSD: patch-bb,v 1.4 2006/01/09 21:22:57 joerg Exp $

--- Lib/test/test_fcntl.py.orig	2002-08-23 16:06:46.000000000 +0000
+++ Lib/test/test_fcntl.py
@@ -16,11 +16,11 @@ except AttributeError:
 else:
     start_len = "qq"
 
-if sys.platform in ('netbsd1', 'Darwin1.2', 'darwin',
+if sys.platform in ('netbsd1', 'netbsd2', 'netbsd3', 'Darwin1.2', 'darwin',
                     'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
-                    'bsdos2', 'bsdos3', 'bsdos4',
+                    'bsdos2', 'bsdos3', 'bsdos4', 'netbsd4', 'dragonfly1',
                     'openbsd', 'openbsd2', 'openbsd3'):
-    lockdata = struct.pack('lxxxxlxxxxlhh', 0, 0, 0, fcntl.F_WRLCK, 0)
+    lockdata = struct.pack('qqihh', 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:
