Enable platform-specific tweaks for FreeBSD 8 (exactly same to FreeBSD 7's yet)
This commit is contained in:
parent
a838a801f2
commit
ea684743da
|
@ -181,7 +181,7 @@ class _posixfile_:
|
||||||
if sys.platform in ('netbsd1',
|
if sys.platform in ('netbsd1',
|
||||||
'openbsd2',
|
'openbsd2',
|
||||||
'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
|
'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
|
||||||
'freebsd6', 'freebsd7',
|
'freebsd6', 'freebsd7', 'freebsd8',
|
||||||
'bsdos2', 'bsdos3', 'bsdos4'):
|
'bsdos2', 'bsdos3', 'bsdos4'):
|
||||||
flock = struct.pack('lxxxxlxxxxlhh', \
|
flock = struct.pack('lxxxxlxxxxlhh', \
|
||||||
l_start, l_len, os.getpid(), l_type, l_whence)
|
l_start, l_len, os.getpid(), l_type, l_whence)
|
||||||
|
|
|
@ -1104,6 +1104,7 @@ _expectations = {
|
||||||
_expectations['freebsd5'] = _expectations['freebsd4']
|
_expectations['freebsd5'] = _expectations['freebsd4']
|
||||||
_expectations['freebsd6'] = _expectations['freebsd4']
|
_expectations['freebsd6'] = _expectations['freebsd4']
|
||||||
_expectations['freebsd7'] = _expectations['freebsd4']
|
_expectations['freebsd7'] = _expectations['freebsd4']
|
||||||
|
_expectations['freebsd8'] = _expectations['freebsd4']
|
||||||
|
|
||||||
class _ExpectedSkips:
|
class _ExpectedSkips:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -23,7 +23,7 @@ if sys.platform.startswith('atheos'):
|
||||||
if sys.platform in ('netbsd1', 'netbsd2', 'netbsd3',
|
if sys.platform in ('netbsd1', 'netbsd2', 'netbsd3',
|
||||||
'Darwin1.2', 'darwin',
|
'Darwin1.2', 'darwin',
|
||||||
'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
|
'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
|
||||||
'freebsd6', 'freebsd7',
|
'freebsd6', 'freebsd7', 'freebsd8',
|
||||||
'bsdos2', 'bsdos3', 'bsdos4',
|
'bsdos2', 'bsdos3', 'bsdos4',
|
||||||
'openbsd', 'openbsd2', 'openbsd3', 'openbsd4'):
|
'openbsd', 'openbsd2', 'openbsd3', 'openbsd4'):
|
||||||
if struct.calcsize('l') == 8:
|
if struct.calcsize('l') == 8:
|
||||||
|
|
|
@ -330,7 +330,7 @@ class GeneralModuleTests(unittest.TestCase):
|
||||||
# I've ordered this by protocols that have both a tcp and udp
|
# I've ordered this by protocols that have both a tcp and udp
|
||||||
# protocol, at least for modern Linuxes.
|
# protocol, at least for modern Linuxes.
|
||||||
if sys.platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
|
if sys.platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
|
||||||
'freebsd7', 'darwin'):
|
'freebsd7', 'freebsd8', 'darwin'):
|
||||||
# avoid the 'echo' service on this platform, as there is an
|
# avoid the 'echo' service on this platform, as there is an
|
||||||
# assumption breaking non-standard port/protocol entry
|
# assumption breaking non-standard port/protocol entry
|
||||||
services = ('daytime', 'qotd', 'domain')
|
services = ('daytime', 'qotd', 'domain')
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -1159,7 +1159,7 @@ class PyBuildExt(build_ext):
|
||||||
missing.append('linuxaudiodev')
|
missing.append('linuxaudiodev')
|
||||||
|
|
||||||
if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
|
if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
|
||||||
'freebsd7'):
|
'freebsd7', 'freebsd8'):
|
||||||
exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
|
exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
|
||||||
else:
|
else:
|
||||||
missing.append('ossaudiodev')
|
missing.append('ossaudiodev')
|
||||||
|
|
Loading…
Reference in New Issue