summaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-devtools/klibc/files/0001-Fix-missing-include-in-sys-mman.h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc/files/0001-Fix-missing-include-in-sys-mman.h.patch')
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/0001-Fix-missing-include-in-sys-mman.h.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/files/0001-Fix-missing-include-in-sys-mman.h.patch b/meta-initramfs/recipes-devtools/klibc/files/0001-Fix-missing-include-in-sys-mman.h.patch
new file mode 100644
index 000000000..4bedef805
--- /dev/null
+++ b/meta-initramfs/recipes-devtools/klibc/files/0001-Fix-missing-include-in-sys-mman.h.patch
@@ -0,0 +1,36 @@
1From 36360b16833400de7818151be5588b16ac4fd5bc Mon Sep 17 00:00:00 2001
2From: Barret Rhoden <brho@google.com>
3Date: Thu, 14 Mar 2019 17:30:38 -0400
4Subject: [PATCH] Fix missing include in sys/mman.h
5
6Linux commit 746c9398f5ac ("arch: move common mmap flags to
7linux/mman.h") moved a few mmap flags, particularly MAP_PRIVATE, from
8asm/mman.h to linux/mman.h. This broke klibc's build, which uses
9MAP_PRIVATE.
10
11linux/mman.h includes asm/mman.h, so this commit merely includes
12linux/mman.h instead of asm/mman.h.
13
14Signed-off-by: Barret Rhoden <brho@google.com>
15Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
16---
17Upstream-Status: Backport [https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit/?id=d4853d030639cf3542ae39129c18b654d8d4f020]
18 usr/include/sys/mman.h | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/usr/include/sys/mman.h b/usr/include/sys/mman.h
22index 56f0b65c..3fd626e7 100644
23--- a/usr/include/sys/mman.h
24+++ b/usr/include/sys/mman.h
25@@ -7,7 +7,7 @@
26
27 #include <klibc/extern.h>
28 #include <sys/types.h>
29-#include <asm/mman.h>
30+#include <linux/mman.h>
31
32 #define MAP_FAILED ((void *)-1)
33
34--
352.23.0
36