Annotation of pkgsrc/lang/python21/patches/patch-bc, revision 1.1
1.1 ! recht 1: $NetBSD$
! 2:
! 3: --- Lib/posixfile.py.orig 2001-04-10 17:44:33.000000000 +0200
! 4: +++ Lib/posixfile.py 2004-08-28 12:10:29.000000000 +0200
! 5: @@ -171,11 +171,11 @@
! 6: # Hack by davem@magnet.com to get locking to go on freebsd;
! 7: # additions for AIX by Vladimir.Marangozov@imag.fr
! 8: import sys, os
! 9: - if sys.platform in ('netbsd1',
! 10: + if sys.platform in ('netbsd1', 'netbsd2',
! 11: 'openbsd2',
! 12: 'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
! 13: 'bsdos2', 'bsdos3', 'bsdos4'):
! 14: - flock = struct.pack('lxxxxlxxxxlhh', \
! 15: + flock = struct.pack('qqihh', \
! 16: l_start, l_len, os.getpid(), l_type, l_whence)
! 17: elif sys.platform in ['aix3', 'aix4']:
! 18: flock = struct.pack('hhlllii', \
! 19: @@ -187,12 +187,12 @@
! 20: flock = fcntl.fcntl(self._file_.fileno(), cmd, flock)
! 21:
! 22: if '?' in how:
! 23: - if sys.platform in ('netbsd1',
! 24: + if sys.platform in ('netbsd1', 'netbsd2'
! 25: 'openbsd2',
! 26: 'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
! 27: 'bsdos2', 'bsdos3', 'bsdos4'):
! 28: l_start, l_len, l_pid, l_type, l_whence = \
! 29: - struct.unpack('lxxxxlxxxxlhh', flock)
! 30: + struct.unpack('qqihh', flock)
! 31: elif sys.platform in ['aix3', 'aix4']:
! 32: l_type, l_whence, l_start, l_len, l_sysid, l_pid, l_vfs = \
! 33: struct.unpack('hhlllii', flock)
CVSweb <webmaster@jp.NetBSD.org>