Apply patch for netbsd multiprocessing support

This commit is contained in:
Jesse Noller 2009-03-31 18:12:35 +00:00
parent 3476d1279f
commit 40a6164afa
3 changed files with 15 additions and 2 deletions

View file

@ -1280,6 +1280,15 @@ class PyBuildExt(build_ext):
)
libraries = []
elif platform.startswith('netbsd'):
macros = dict( # at least NetBSD 5
HAVE_SEM_OPEN=1,
HAVE_SEM_TIMEDWAIT=0,
HAVE_FD_TRANSFER=1,
HAVE_BROKEN_SEM_GETVALUE=1
)
libraries = []
else: # Linux and other unices
macros = dict(
HAVE_SEM_OPEN=1,