summaryrefslogtreecommitdiff
path: root/Lib/posixfile.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-09-10 17:40:16 +0000
committerGuido van Rossum <guido@python.org>1996-09-10 17:40:16 +0000
commitca687987a98a6e7c7670c383f77427f41d265a6f (patch)
tree3ec0ebd898a9c0ee0b59bcae7c3742a1a3a81339 /Lib/posixfile.py
parenta5a7077aba483f9620d5bd124e01e13b74461aec (diff)
downloadcpython-ca687987a98a6e7c7670c383f77427f41d265a6f.tar.gz
Added linux2 specific code :-(
Diffstat (limited to 'Lib/posixfile.py')
-rw-r--r--Lib/posixfile.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/posixfile.py b/Lib/posixfile.py
index f0df5433aa..fc5f53fe2c 100644
--- a/Lib/posixfile.py
+++ b/Lib/posixfile.py
@@ -196,6 +196,9 @@ class _posixfile_:
elif sys.platform in ['aix3', 'aix4']:
l_type, l_whence, l_start, l_len, l_sysid, l_pid, l_vfs = \
struct.unpack('hhlllii', flock)
+ elif sys.platform == "linux2":
+ l_type, l_whence, l_start, l_len, l_pid, l_sysid = \
+ struct.unpack('hhllhh', flock)
else:
l_type, l_whence, l_start, l_len, l_sysid, l_pid = \
struct.unpack('hhllhh', flock)