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

Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
(cherry picked from commit 89c3f35d92)

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1569>
This commit is contained in:
Matthieu Herrb 2024-05-19 18:12:47 +02:00 committed by Olivier Fourdan
parent 1126d55f80
commit dc2e34aa0e

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')
],
)