diff options
-rw-r--r-- | src/sighook.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sighook.c b/src/sighook.c index 3f60405..0e9fddb 100644 --- a/src/sighook.c +++ b/src/sighook.c @@ -29,7 +29,8 @@ #include <stdlib.h> #include <unistd.h> -#ifdef _POSIX_SEMAPHORES +// NetBSD opens a file descriptor for each sem_init() +#if defined(_POSIX_SEMAPHORES) && !__NetBSD__ # define BFS_POSIX_SEMAPHORES _POSIX_SEMAPHORES #else # define BFS_POSIX_SEMAPHORES (-1) |