From be49153822071ec037d6b005a07dcf9f43feb64a Mon Sep 17 00:00:00 2001 From: Oleh Nykyforchyn Date: Tue, 29 Jul 2025 10:40:02 +0300 Subject: [PATCH] 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 --- miext/sync/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miext/sync/meson.build b/miext/sync/meson.build index 1c959d60bc..a7c7eca388 100644 --- a/miext/sync/meson.build +++ b/miext/sync/meson.build @@ -10,7 +10,7 @@ hdrs_miext_sync = [ 'misyncstr.h', ] -if build_dri3 +if xshmfence_dep.found() srcs_miext_sync += 'misyncshm.c' endif