aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarret Rhoden <brho@google.com>2019-03-14 17:30:38 -0400
committerBen Hutchings <ben@decadent.org.uk>2019-04-11 23:40:06 +0100
commitd4853d030639cf3542ae39129c18b654d8d4f020 (patch)
treee7eb15090248f8ed6de2ebcf56f998a0601c3729
parentf24c4d725f5b178d1027dca14203f57e8e78a34d (diff)
downloadklibc-d4853d030639cf3542ae39129c18b654d8d4f020.tar.gz
Fix missing include in sys/mman.h
Linux commit 746c9398f5ac ("arch: move common mmap flags to linux/mman.h") moved a few mmap flags, particularly MAP_PRIVATE, from asm/mman.h to linux/mman.h. This broke klibc's build, which uses MAP_PRIVATE. linux/mman.h includes asm/mman.h, so this commit merely includes linux/mman.h instead of asm/mman.h. Signed-off-by: Barret Rhoden <brho@google.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r--usr/include/sys/mman.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/include/sys/mman.h b/usr/include/sys/mman.h
index 56f0b65cb025f..3fd626e7402a5 100644
--- a/usr/include/sys/mman.h
+++ b/usr/include/sys/mman.h
@@ -7,7 +7,7 @@
#include <klibc/extern.h>
#include <sys/types.h>
-#include <asm/mman.h>
+#include <linux/mman.h>
#define MAP_FAILED ((void *)-1)