Lines 1-17
Link Here
|
1 |
--- Lib/test/test_fcntl.py.orig Sun Apr 3 22:45:13 2005 |
|
|
2 |
+++ Lib/test/test_fcntl.py Sun Apr 3 22:45:19 2005 |
3 |
@@ -24,7 +24,13 @@ |
4 |
'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5', 'freebsd6', |
5 |
'bsdos2', 'bsdos3', 'bsdos4', |
6 |
'openbsd', 'openbsd2', 'openbsd3'): |
7 |
- lockdata = struct.pack('lxxxxlxxxxlhh', 0, 0, 0, fcntl.F_WRLCK, 0) |
8 |
+ if struct.calcsize('l') == 8: |
9 |
+ off_t = 'l' |
10 |
+ pid_t = 'i' |
11 |
+ else: |
12 |
+ off_t = 'lxxxx' |
13 |
+ pid_t = 'l' |
14 |
+ lockdata = struct.pack(off_t+off_t+pid_t+'hh', 0, 0, 0, fcntl.F_WRLCK, 0) |
15 |
elif sys.platform in ['aix3', 'aix4', 'hp-uxB', 'unixware7']: |
16 |
lockdata = struct.pack('hhlllii', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0) |
17 |
elif sys.platform in ['os2emx']: |