mirror of https://github.com/python/cpython
According to Craig H Rowland, openbsd2 is yet another BSD variant that
uses the BSD version of the lock structure. Sigh, @!%$.
This commit is contained in:
parent
8f35681843
commit
5274c336f5
|
@ -178,6 +178,7 @@ class _posixfile_:
|
||||||
# additions for AIX by Vladimir.Marangozov@imag.fr
|
# additions for AIX by Vladimir.Marangozov@imag.fr
|
||||||
import sys, os
|
import sys, os
|
||||||
if sys.platform in ('netbsd1',
|
if sys.platform in ('netbsd1',
|
||||||
|
'openbsd2',
|
||||||
'freebsd2', 'freebsd3',
|
'freebsd2', 'freebsd3',
|
||||||
'bsdos2', 'bsdos3', 'bsdos4'):
|
'bsdos2', 'bsdos3', 'bsdos4'):
|
||||||
flock = struct.pack('lxxxxlxxxxlhh', \
|
flock = struct.pack('lxxxxlxxxxlhh', \
|
||||||
|
@ -193,6 +194,7 @@ class _posixfile_:
|
||||||
|
|
||||||
if '?' in how:
|
if '?' in how:
|
||||||
if sys.platform in ('netbsd1',
|
if sys.platform in ('netbsd1',
|
||||||
|
'openbsd2',
|
||||||
'freebsd2', 'freebsd3',
|
'freebsd2', 'freebsd3',
|
||||||
'bsdos2', 'bsdos3', 'bsdos4'):
|
'bsdos2', 'bsdos3', 'bsdos4'):
|
||||||
l_start, l_len, l_pid, l_type, l_whence = \
|
l_start, l_len, l_pid, l_type, l_whence = \
|
||||||
|
|
Loading…
Reference in New Issue