mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 16:44:52 +00:00
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>