From 4e7d76ee4cfbae616b348c6a583696a8ad287e35 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Sun, 29 Dec 2024 16:32:56 +1300 Subject: [PATCH] Add definition of `dma_buf_export_sync_file` if needed to fix Android build --- src/kernel_supplement.h | 4 ++++ src/test/v4l_dmabuf.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/kernel_supplement.h b/src/kernel_supplement.h index f2d257b1d77..a25c61ac165 100644 --- a/src/kernel_supplement.h +++ b/src/kernel_supplement.h @@ -565,6 +565,10 @@ enum { #ifndef DMA_BUF_IOCTL_EXPORT_SYNC_FILE #define DMA_BUF_IOCTL_EXPORT_SYNC_FILE _IOWR(DMA_BUF_BASE, 2, struct dma_buf_export_sync_file) +struct dma_buf_export_sync_file { + uint32_t flags; + int32_t fd; +}; #endif } // namespace rr diff --git a/src/test/v4l_dmabuf.c b/src/test/v4l_dmabuf.c index 57c03bb501b..d15b6939c21 100644 --- a/src/test/v4l_dmabuf.c +++ b/src/test/v4l_dmabuf.c @@ -5,6 +5,10 @@ #include #ifndef DMA_BUF_IOCTL_EXPORT_SYNC_FILE +struct dma_buf_export_sync_file { + uint32_t flags; + int32_t fd; +}; #define DMA_BUF_IOCTL_EXPORT_SYNC_FILE _IOWR(DMA_BUF_BASE, 2, struct dma_buf_export_sync_file) #endif