From 4054f3322198abbc641bef06f9adca0891b195c1 Mon Sep 17 00:00:00 2001 From: Alessandro Bono Date: Thu, 15 Feb 2024 17:27:54 +0100 Subject: [PATCH] meson: Don't fail when linux/dma-buf.h is missing We just don't define HAVE_DMABUF in this case. --- meson.build | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/meson.build b/meson.build index 1bc6a2f117..d395aad621 100644 --- a/meson.build +++ b/meson.build @@ -634,11 +634,7 @@ libdrm_dep = dependency('libdrm', required: os_linux) libdrm_dep = libdrm_dep.partial_dependency(includes: true, compile_args: true) cdata.set('HAVE_DRM_FOURCC_H', libdrm_dep.found()) -has_linux_dma_buf_h = cc.has_header('linux/dma-buf.h') -if os_linux and not has_linux_dma_buf_h - error('OS is Linux, but linux/dma-buf.h not found.') -endif -cdata.set('HAVE_DMABUF', has_linux_dma_buf_h) +cdata.set('HAVE_DMABUF', cc.has_header('linux/dma-buf.h')) cloudproviders_dep = dependency('cloudproviders', required: get_option('cloudproviders'),