klibc 2.0.7

This commit is contained in:
idriskalp
2019-12-26 17:53:00 +03:00
parent 4e3bce669f
commit 8b34b490cd
2 changed files with 46 additions and 1 deletions
@@ -0,0 +1,35 @@
From d4853d030639cf3542ae39129c18b654d8d4f020 Mon Sep 17 00:00:00 2001
From: Barret Rhoden <brho@google.com>
Date: Thu, 14 Mar 2019 17:30:38 -0400
Subject: 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>
---
usr/include/sys/mman.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr/include/sys/mman.h b/usr/include/sys/mman.h
index 56f0b65c..3fd626e7 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)
--
cgit 1.2-0.3.lf.el7