render: drop <linux/dma-buf.h> compat defines

It's been 3 years, so these defines are widespread enough by now.
This commit is contained in:
Simon Ser 2026-01-01 19:34:06 +01:00 committed by Kenny Levinsen
parent 3f9a164484
commit caed9d78d7
2 changed files with 5 additions and 25 deletions

View file

@ -17,7 +17,11 @@ wlr_files += files(
'wlr_texture.c',
)
if cc.has_header('linux/dma-buf.h') and target_machine.system() == 'linux'
has_dma_buf_import_sync_file = cc.has_header('linux/dma-buf.h') and cc.has_define(
'DMA_BUF_IOCTL_IMPORT_SYNC_FILE',
prefix: '#include <linux/dma-buf.h>',
)
if has_dma_buf_import_sync_file and target_machine.system() == 'linux'
wlr_files += files('dmabuf_linux.c')
else
wlr_files += files('dmabuf_fallback.c')