# Description: SEM option patch. If SEM is enabled, enable the build properly # Not upstreamed --- setup.py.orig 2016-06-10 21:23:00.702860000 +0200 +++ setup.py 2016-06-10 21:25:43.691636000 +0200 @@ -1553,14 +1553,30 @@ macros = dict() libraries = [] - elif host_platform in ('freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8'): + elif host_platform in ('freebsd4', 'freebsd5', 'freebsd6'): # FreeBSD's P1003.1b semaphore support is very experimental # and has many known problems. (as of June 2008) - macros = dict() + macros = dict( # FreeBSD 4-6 + HAVE_SEM_OPEN=0, + HAVE_SEM_TIMEDWAIT=0, + HAVE_FD_TRANSFER=1, + ) + libraries = [] + + elif host_platform in ('freebsd7', 'freebsd8', 'freebsd9', 'freebsd10', 'freebsd11'): + macros = dict( # FreeBSD 7+ + HAVE_SEM_OPEN=1, + HAVE_SEM_TIMEDWAIT=1, + HAVE_FD_TRANSFER=1, + ) libraries = [] elif host_platform.startswith('bsdsunix'): - macros = dict() + macros = dict( # BSDSUniX + HAVE_SEM_OPEN=1, + HAVE_SEM_TIMEDWAIT=1, + HAVE_FD_TRANSFER=1, + ) libraries = [] elif host_platform.startswith('openbsd'):