]> granicus.if.org Git - python/commitdiff
Added linux2 specific code :-(
authorGuido van Rossum <guido@python.org>
Tue, 10 Sep 1996 17:40:16 +0000 (17:40 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 10 Sep 1996 17:40:16 +0000 (17:40 +0000)
Lib/posixfile.py

index f0df5433aa0c1c2be180fc35755df60b631c46e8..fc5f53fe2cad030e1a2674a9d9e8d3a4c10da38f 100644 (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)