issue3770: if SEM_OPEN is 0, disable the mp.synchronize module, rev. Nick Coghlan, Damien Miller

This commit is contained in:
Jesse Noller 2008-09-30 00:15:45 +00:00
parent e563aa4383
commit 37040cdace
5 changed files with 37 additions and 0 deletions

View file

@ -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,