diff options
Diffstat (limited to 'include/drm-uapi/dma-buf.h')
-rw-r--r-- | include/drm-uapi/dma-buf.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 <linux/types.h> +#else /* One of the BSDs */ + +#include <stdint.h> +#include <sys/types.h> + +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. * |