mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-23 08:29:09 +00:00
build: fix no <linux/dma-buf.h> for BSDs
This commit is contained in:
committed by
Cameron Gutman
parent
f9bb45579b
commit
1fd545ae1f
@@ -12,7 +12,23 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#include <libdrm/drm_fourcc.h>
|
#include <libdrm/drm_fourcc.h>
|
||||||
|
#ifdef __linux__
|
||||||
#include <linux/dma-buf.h>
|
#include <linux/dma-buf.h>
|
||||||
|
#else //bundle on BSDs
|
||||||
|
typedef uint64_t __u64;
|
||||||
|
struct dma_buf_sync {
|
||||||
|
__u64 flags;
|
||||||
|
};
|
||||||
|
#define DMA_BUF_SYNC_READ (1 << 0)
|
||||||
|
#define DMA_BUF_SYNC_WRITE (2 << 0)
|
||||||
|
#define DMA_BUF_SYNC_RW (DMA_BUF_SYNC_READ | DMA_BUF_SYNC_WRITE)
|
||||||
|
#define DMA_BUF_SYNC_START (0 << 2)
|
||||||
|
#define DMA_BUF_SYNC_END (1 << 2)
|
||||||
|
#define DMA_BUF_SYNC_VALID_FLAGS_MASK \
|
||||||
|
(DMA_BUF_SYNC_RW | DMA_BUF_SYNC_END)
|
||||||
|
#define DMA_BUF_BASE 'b'
|
||||||
|
#define DMA_BUF_IOCTL_SYNC _IOW(DMA_BUF_BASE, 0, struct dma_buf_sync)
|
||||||
|
#endif
|
||||||
|
|
||||||
// Special Rockchip type
|
// Special Rockchip type
|
||||||
#ifndef DRM_FORMAT_NA12
|
#ifndef DRM_FORMAT_NA12
|
||||||
|
|||||||
Reference in New Issue
Block a user