pkgsrc/lang/python15/patches/patch-ae
minskim 76177eedb2 Follow python23's way in dealing with platform-dependent files.
Suggested by drochner@.

Bump PKGREVISION.
2004-06-23 15:54:08 +00:00

22 lines
1,003 B
Text

$NetBSD: patch-ae,v 1.1 2004/06/23 15:54:08 minskim Exp $
--- ./Lib/posixfile.py.orig 1999-02-22 22:14:32.000000000 -0600
+++ ./Lib/posixfile.py
@@ -177,7 +177,7 @@ class _posixfile_:
# Hack by davem@magnet.com to get locking to go on freebsd;
# additions for AIX by Vladimir.Marangozov@imag.fr
import sys, os
- if sys.platform in ('netbsd1',
+ if sys.platform in ('netbsd1', 'netbsd2',
'freebsd2', 'freebsd3',
'bsdos2', 'bsdos3', 'bsdos4'):
flock = struct.pack('lxxxxlxxxxlhh', \
@@ -192,7 +192,7 @@ class _posixfile_:
flock = fcntl.fcntl(self._file_.fileno(), cmd, flock)
if '?' in how:
- if sys.platform in ('netbsd1',
+ if sys.platform in ('netbsd1', 'netbsd2',
'freebsd2', 'freebsd3',
'bsdos2', 'bsdos3', 'bsdos4'):
l_start, l_len, l_pid, l_type, l_whence = \