loader/wayland: Add fallback wl_display_dispatch_queue_timeout
This is almost a 1:1 copy of the same function in libwayland. If the version with the symbol propagates far enough the fallback can be removed again. Signed-off-by: Sebastian Wick <sebastian.wick@redhat.com> Reviewed-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27511>
This commit is contained in:
committed by
Marge Bot
parent
df801bec1e
commit
a00f9c401b
@@ -2014,6 +2014,12 @@ if with_platform_wayland
|
||||
dep_wayland_egl_headers = dep_wayland_egl.partial_dependency(compile_args : true)
|
||||
endif
|
||||
pre_args += '-DWL_HIDE_DEPRECATED'
|
||||
if cc.has_function(
|
||||
'wl_display_dispatch_queue_timeout',
|
||||
prefix : '#include <wayland-client.h>',
|
||||
dependencies: dep_wayland_client)
|
||||
pre_args += ['-DHAVE_WL_DISPATCH_QUEUE_TIMEOUT']
|
||||
endif
|
||||
endif
|
||||
|
||||
dep_x11 = null_dep
|
||||
|
||||
Reference in New Issue
Block a user