present: On *BSD, epoll-shim is needed to emulate eventfd()

Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1559>
This commit is contained in:
Matthieu Herrb 2024-05-19 18:12:47 +02:00 committed by Marge Bot
parent c5d152c176
commit 89c3f35d92

View File

@ -16,11 +16,18 @@ hdrs_present = [
'presentext.h',
]
if host_machine.system() in ['freebsd', 'openbsd']
epoll_dep = dependency('epoll-shim')
else
epoll_dep = []
endif
libxserver_present = static_library('libxserver_present',
srcs_present,
include_directories: inc,
dependencies: [
common_dep,
epoll_dep,
dependency('presentproto', version: '>= 1.2')
],
)