summaryrefslogtreecommitdiffstats
path: root/patches/weston-8.0.0/0001-unconditionally-include-sys-mman.h-in-os-compatibili.patch
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2020-02-05 11:32:14 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-02-05 11:32:14 +0100
commit35c7f435e4c3c5f71fbce9efed24455e50f2b07e (patch)
tree49c50b7ec49e68666a4caa83d3be3f9d391acf4d /patches/weston-8.0.0/0001-unconditionally-include-sys-mman.h-in-os-compatibili.patch
parent65ad766e9c017123124323fde73842415fdceb30 (diff)
downloadptxdist-35c7f435e4c3c5f71fbce9efed24455e50f2b07e.tar.gz
ptxdist-35c7f435e4c3c5f71fbce9efed24455e50f2b07e.tar.xz
weston: add upstream fixes for older glibc
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches/weston-8.0.0/0001-unconditionally-include-sys-mman.h-in-os-compatibili.patch')
-rw-r--r--patches/weston-8.0.0/0001-unconditionally-include-sys-mman.h-in-os-compatibili.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/patches/weston-8.0.0/0001-unconditionally-include-sys-mman.h-in-os-compatibili.patch b/patches/weston-8.0.0/0001-unconditionally-include-sys-mman.h-in-os-compatibili.patch
new file mode 100644
index 000000000..1486121e7
--- /dev/null
+++ b/patches/weston-8.0.0/0001-unconditionally-include-sys-mman.h-in-os-compatibili.patch
@@ -0,0 +1,33 @@
+From: James Hilliard <james.hilliard1@gmail.com>
+Date: Sat, 1 Feb 2020 20:02:29 -0700
+Subject: [PATCH] unconditionally include sys/mman.h in os-compatibility.c
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Fixes:
+../shared/os-compatibility.c:273:25: error: ‘PROT_READ’ undeclared (first use in this function); did you mean ‘LOCK_READ’?
+ map = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, file->fd, 0);
+ ^~~~~~~~~
+ LOCK_READ
+
+Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
+---
+ shared/os-compatibility.c | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/shared/os-compatibility.c b/shared/os-compatibility.c
+index 5e1ce4793cec..041c929f83e5 100644
+--- a/shared/os-compatibility.c
++++ b/shared/os-compatibility.c
+@@ -34,10 +34,7 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <libweston/zalloc.h>
+-
+-#ifdef HAVE_MEMFD_CREATE
+ #include <sys/mman.h>
+-#endif
+
+ #include "os-compatibility.h"
+