summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/posixfile.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/posixfile.py b/Lib/posixfile.py
index f0df543..fc5f53f 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)