Skip to content

Commit

Permalink
sighook: Disable semaphores on NetBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
tavianator committed Aug 11, 2024
1 parent 1507cc2 commit 3e9be27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sighook.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3e9be27

Please sign in to comment.