xserver: miext/sync/meson.build: compile misyncshm.c if xshmfence found

It is a patch that fixes xserver build if libdrm is too old.

Now misyncshm.c compilation depends on dri3, which is incorrect. If libdrm
is not recent enough, then dri3 is not built, the file misyncshm.c
is not compiled, and the function miSyncShmScreenInit() is unavailable.
It is called in glamor_sync.c if xshmfence is present, which causes
a compilation error. This patch makes misyncshm.c compile if xshmfence
is found.

Signed-off-by: Oleh Nykyforchyn <olen.nyk@gmail.com>
This commit is contained in:
Oleh Nykyforchyn
2025-07-29 10:40:02 +03:00
committed by Enrico Weigelt
parent c3b768802a
commit d9330703c8

View File

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