build: Fix DRI3 on DragonFly and OpenBSD
Commit96bdc156
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: commit96bdc156
- 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:
parent
279cb5d17c
commit
ebc593d92c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue