From 51bd7de17b131e0df60b296ecf50977df0adb69d Mon Sep 17 00:00:00 2001 From: apio Date: Sun, 23 Oct 2022 12:10:05 +0200 Subject: [PATCH] libc: Patch mman.h so libgcov builds --- libs/libc/include/sys/mman.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/libc/include/sys/mman.h b/libs/libc/include/sys/mman.h index 63bfc921..93652ba1 100644 --- a/libs/libc/include/sys/mman.h +++ b/libs/libc/include/sys/mman.h @@ -13,6 +13,10 @@ #define PAGE_SIZE 4096 +#define MAP_PRIVATE 0 +#define MAP_SHARED 1 +#define MAP_ANONYMOUS 2 + #ifdef __cplusplus extern "C" { @@ -26,7 +30,7 @@ extern "C" * address space. */ int munmap(void* addr, size_t size); - /* Protects size bytes of memory according to the prot argument. */ + /* Changes the permissions of size bytes of memory at addr according to the prot argument. */ int mprotect(void* addr, size_t size, int prot); #ifdef __cplusplus