Added linux2 specific code :-(

This commit is contained in:
Guido van Rossum 1996-09-10 17:40:16 +00:00
parent 5f8ea10bc2
commit ba885ffaa0
1 changed files with 3 additions and 0 deletions

View File

@ -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)