blob: 1741c4d863e85da33284cba4bba6331b24a4b97f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--- ui/gfx/linux/client_native_pixmap_dmabuf.cc.orig 2020-03-16 18:40:43 UTC
+++ ui/gfx/linux/client_native_pixmap_dmabuf.cc
@@ -5,7 +5,9 @@
#include "ui/gfx/linux/client_native_pixmap_dmabuf.h"
#include <fcntl.h>
+#if !defined(__FreeBSD__)
#include <linux/version.h>
+#endif
#include <stddef.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
@@ -26,11 +28,7 @@
#include "ui/gfx/buffer_format_util.h"
#include "ui/gfx/switches.h"
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
-#include <linux/dma-buf.h>
-#else
-#include <linux/types.h>
-
+#if defined(__FreeBSD__)
struct dma_buf_sync {
__u64 flags;
};
|