pkgsrc/lang/python15/patches/patch-ac
2005-12-03 01:35:36 +00:00

22 lines
1 KiB
Text

$NetBSD: patch-ac,v 1.2 2005/12/03 01:35:36 joerg Exp $
--- Lib/dos-8x3/posixfil.py.orig 1999-04-08 15:27:43.000000000 -0500
+++ Lib/dos-8x3/posixfil.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', 'dragonfly1',
'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', 'dragonfly1',
'freebsd2', 'freebsd3',
'bsdos2', 'bsdos3', 'bsdos4'):
l_start, l_len, l_pid, l_type, l_whence = \