diff options
author | Guido van Rossum <guido@python.org> | 1996-09-10 17:40:16 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-09-10 17:40:16 (GMT) |
commit | ba885ffaa05f8b80041e0b83f15bf8fa71463447 (patch) | |
tree | cd8538acec976a7e325f3573b5e225a874d4b82a /Lib/posixfile.py | |
parent | 5f8ea10bc24be5a02f62d7d8563078f8e4e3e793 (diff) | |
download | cpython-ba885ffaa05f8b80041e0b83f15bf8fa71463447.zip cpython-ba885ffaa05f8b80041e0b83f15bf8fa71463447.tar.gz cpython-ba885ffaa05f8b80041e0b83f15bf8fa71463447.tar.bz2 |
Added linux2 specific code :-(
Diffstat (limited to 'Lib/posixfile.py')
-rw-r--r-- | Lib/posixfile.py | 3 |
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) |