Skip to content

Commit

Permalink
Add definition of dma_buf_export_sync_file if needed to fix Android…
Browse files Browse the repository at this point in the history
… build
  • Loading branch information
rocallahan committed Dec 29, 2024
1 parent e87c255 commit 4e7d76e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kernel_supplement.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/test/v4l_dmabuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#include <linux/dma-buf.h>

#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

Expand Down

0 comments on commit 4e7d76e

Please sign in to comment.