labnag: fix FreeBSD signalfd() build error

This commit is contained in:
Johan Malm 2025-08-08 19:17:22 +01:00 committed by Johan Malm
parent 8a5a04cc1a
commit 6c3cf84b07
4 changed files with 14 additions and 1 deletions

View file

@ -17,6 +17,9 @@
#include <stdint.h>
#include <stdlib.h>
#include <strings.h>
#ifdef __FreeBSD__
#include <sys/event.h> /* For signalfd() */
#endif
#include <sys/signalfd.h>
#include <sys/stat.h>
#include <sys/timerfd.h>

View file

@ -30,6 +30,13 @@ foreach xml : protocols
)
endforeach
if host_machine.system() in ['freebsd', 'openbsd']
# For signalfd()
epoll_dep = dependency('epoll-shim')
else
epoll_dep = []
endif
executable(
'labnag',
nag_sources,
@ -41,6 +48,7 @@ executable(
wayland_cursor,
wlroots,
server_protos,
epoll_dep,
],
install: true
)