mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-23 01:40:31 -05:00
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:
parent
3f9a164484
commit
caed9d78d7
2 changed files with 5 additions and 25 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue