mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +08:00
- Fix a fcntl test case on KFreeBSD, Debian #708653 (Petr Salinger).
This commit is contained in:
parent
60b3ac7482
commit
1dfb9180a7
@ -35,6 +35,8 @@ def get_lockdata():
|
||||
pid_t = 'l'
|
||||
lockdata = struct.pack(off_t + off_t + pid_t + 'hh', 0, 0, 0,
|
||||
fcntl.F_WRLCK, 0)
|
||||
elif sys.platform.startswith('gnukfreebsd'):
|
||||
lockdata = struct.pack('qqihhi', 0, 0, 0, fcntl.F_WRLCK, 0, 0)
|
||||
elif sys.platform in ['aix3', 'aix4', 'hp-uxB', 'unixware7']:
|
||||
lockdata = struct.pack('hhlllii', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
|
||||
elif sys.platform in ['os2emx']:
|
||||
|
Loading…
Reference in New Issue
Block a user