klibc-bot for Barret Rhoden
2019-Apr-12 19:51 UTC
[klibc] [klibc:master] Fix missing include in sys/mman.h
Commit-ID: d4853d030639cf3542ae39129c18b654d8d4f020 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=d4853d030639cf3542ae39129c18b654d8d4f020 Author: Barret Rhoden <brho at google.com> AuthorDate: Thu, 14 Mar 2019 17:30:38 -0400 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Thu, 11 Apr 2019 23:40:06 +0100 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 at google.com> Signed-off-by: Ben Hutchings <ben at 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)
Reasonably Related Threads
- [PATCH] Fix missing include in sys/mman.h
- [ANNOUNCE] klibc 2.0.7
- [rfc patch] mman.h remove asm/page.h include
- [LLVMdev] Fails to compile w/ MinGW: sys/mman.h: No such file or directory
- [LLVMdev] Fails to compile w/ MinGW: sys/mman.h: No such file or directory