Skip to content

Commit 867f95b

Browse files
committed
The import sync file variants of the ioctl and struct need the same treatment as the export variants.
1 parent c0147f0 commit 867f95b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/v4l_dmabuf.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ struct dma_buf_export_sync_file {
1111
};
1212
#define DMA_BUF_IOCTL_EXPORT_SYNC_FILE _IOWR(DMA_BUF_BASE, 2, struct dma_buf_export_sync_file)
1313
#endif
14+
#ifndef DMA_BUF_IOCTL_IMPORT_SYNC_FILE
15+
struct dma_buf_import_sync_file {
16+
uint32_t flags;
17+
int32_t fd;
18+
};
19+
#define DMA_BUF_IOCTL_IMPORT_SYNC_FILE _IOWR(DMA_BUF_BASE, 3, struct dma_buf_import_sync_file)
20+
#endif
1421

1522
static const char device_name[] = "/dev/video0";
1623

0 commit comments

Comments
 (0)