From: Guido van Rossum Date: Tue, 10 Sep 1996 17:40:16 +0000 (+0000) Subject: Added linux2 specific code :-( X-Git-Tag: v1.4~241 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba885ffaa05f8b80041e0b83f15bf8fa71463447;p=thirdparty%2FPython%2Fcpython.git Added linux2 specific code :-( --- diff --git a/Lib/posixfile.py b/Lib/posixfile.py index f0df5433aa0c..fc5f53fe2cad 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)