blob: 30f8967cad8b698c9e062e966a9ab4f92a0f482c (
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
|
--- src/3rdparty/chromium/ui/gfx/linux/client_native_pixmap_dmabuf.cc.orig 2022-09-26 10:05:50 UTC
+++ src/3rdparty/chromium/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(__OpenBSD__) && !defined(__FreeBSD__)
#include <linux/version.h>
+#endif
#include <stddef.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
@@ -27,11 +29,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(__OpenBSD__) || defined(__FreeBSD__)
struct dma_buf_sync {
__u64 flags;
};
|