summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3/posixfil.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-09 16:56:41 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-09 16:56:41 (GMT)
commitb978d18fec0b583be415e20464e63f40bdc895da (patch)
tree448caa96dd1d74a303854f9568286b80ef485c4a /Lib/dos-8x3/posixfil.py
parent3d20986d9664f9d6025b1f8e89fa4b3804c0cbd6 (diff)
downloadcpython-b978d18fec0b583be415e20464e63f40bdc895da.zip
cpython-b978d18fec0b583be415e20464e63f40bdc895da.tar.gz
cpython-b978d18fec0b583be415e20464e63f40bdc895da.tar.bz2
Guess... :-)
Diffstat (limited to 'Lib/dos-8x3/posixfil.py')
-rwxr-xr-xLib/dos-8x3/posixfil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/dos-8x3/posixfil.py b/Lib/dos-8x3/posixfil.py
index fc5f53f..d66517f 100755
--- a/Lib/dos-8x3/posixfil.py
+++ b/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 == 'freebsd2':
+ if sys.platform in ('netbsd1', 'freebsd2', 'freebsd3'):
flock = struct.pack('lxxxxlxxxxlhh', \
l_start, l_len, os.getpid(), l_type, l_whence)
elif sys.platform in ['aix3', 'aix4']:
@@ -190,7 +190,7 @@ class _posixfile_:
flock = fcntl.fcntl(self._file_.fileno(), cmd, flock)
if '?' in how:
- if sys.platform == 'freebsd2':
+ if sys.platform in ('netbsd1', 'freebsd2', 'freebsd3'):
l_start, l_len, l_pid, l_type, l_whence = \
struct.unpack('lxxxxlxxxxlhh', flock)
elif sys.platform in ['aix3', 'aix4']: