diff --git a/include/drm-uapi/dma-buf.h b/include/drm-uapi/dma-buf.h index 30fb8834aa3..60ca66f8329 100644 --- a/include/drm-uapi/dma-buf.h +++ b/include/drm-uapi/dma-buf.h @@ -20,8 +20,26 @@ #ifndef _DMA_BUF_UAPI_H_ #define _DMA_BUF_UAPI_H_ +#if defined(__linux__) + #include +#else /* One of the BSDs */ + +#include +#include + +typedef int8_t __s8; +typedef uint8_t __u8; +typedef int16_t __s16; +typedef uint16_t __u16; +typedef int32_t __s32; +typedef uint32_t __u32; +typedef int64_t __s64; +typedef uint64_t __u64; + +#endif + /** * struct dma_buf_sync - Synchronize with CPU access. *