From 3e9be279725ebfa4be4e572061ab76a4e5f47066 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 11 Aug 2024 15:39:00 -0400 Subject: sighook: Disable semaphores on NetBSD --- src/sighook.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 #include -#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) -- cgit v1.2.3