mirror of
https://github.com/python/cpython.git
synced 2025-09-14 12:46:49 +00:00
issue3770: if SEM_OPEN is 0, disable the mp.synchronize module, rev. Nick Coghlan, Damien Miller
This commit is contained in:
parent
e563aa4383
commit
37040cdace
5 changed files with 37 additions and 0 deletions
8
setup.py
8
setup.py
|
@ -1269,6 +1269,14 @@ class PyBuildExt(build_ext):
|
|||
)
|
||||
libraries = []
|
||||
|
||||
elif platform.startswith('openbsd'):
|
||||
macros = dict( # OpenBSD
|
||||
HAVE_SEM_OPEN=0, # Not implemented
|
||||
HAVE_SEM_TIMEDWAIT=0,
|
||||
HAVE_FD_TRANSFER=1,
|
||||
)
|
||||
libraries = []
|
||||
|
||||
else: # Linux and other unices
|
||||
macros = dict(
|
||||
HAVE_SEM_OPEN=1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue