meson: fix build if shmfence is enabled but dri3 & xwayland are not

glamor_sync.c calls miSyncShmScreenInit if HAVE_XSHMFENCE is defined,
but it was only being built if either dri3 or xwayland were enabled.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2070>
This commit is contained in:
Alan Coopersmith 2025-09-25 17:40:20 -07:00
parent c62cd2feaa
commit a8f8ec7e7d

View file

@ -10,7 +10,7 @@ hdrs_miext_sync = [
'misyncstr.h',
]
if build_dri3 or build_xwayland
if build_dri3 or build_xwayland or xshmfence_dep.found()
srcs_miext_sync += 'misyncshm.c'
endif