build: Fix DRI3 on DragonFly and OpenBSD

Commit 96bdc156 added a check for <sys/eventfd.h> to enable DRI3.

DragonFly and OpenBSD however rely on epoll-shim for <sys/eventfd.h>,
so that must be added as a dependency for the <sys/eventfd.h> check.

Fixes: commit 96bdc156 - xwayland: Do not enable DRI3 without eventfd
Suggested-by: Jan Beich <jbeich@freebsd.org>
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1642>
This commit is contained in:
Olivier Fourdan 2024-08-13 10:22:35 +02:00 committed by Enrico Weigelt, metux IT consult
parent 279cb5d17c
commit ebc593d92c

View File

@ -496,7 +496,7 @@ else
epoll_dep = [] epoll_dep = []
endif endif
have_eventfd = cc.has_header('sys/eventfd.h') have_eventfd = cc.has_header('sys/eventfd.h', dependencies: epoll_dep)
if get_option('dri3') == 'auto' if get_option('dri3') == 'auto'
build_dri3 = dri3proto_dep.found() and xshmfence_dep.found() and libdrm_dep.found() and have_eventfd build_dri3 = dri3proto_dep.found() and xshmfence_dep.found() and libdrm_dep.found() and have_eventfd
else else