mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
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:
committed by
Enrico Weigelt
parent
d8925febf6
commit
be49153822
@@ -10,7 +10,7 @@ hdrs_miext_sync = [
|
||||
'misyncstr.h',
|
||||
]
|
||||
|
||||
if build_dri3
|
||||
if xshmfence_dep.found()
|
||||
srcs_miext_sync += 'misyncshm.c'
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user