summaryrefslogtreecommitdiff
path: root/lang/python15/patches/patch-ae
blob: fbd4a473fdb999edc01e70a6a5805ffe41cf7453 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$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 = \