From 341f7e41e537e83d8695b9c506d5747d01e9a91d Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 30 May 2023 01:17:45 +0300 Subject: [PATCH] LibC: Fix some headers to make gcc build again --- libc/include/limits.h | 6 ------ libc/include/sys/mman.h | 7 ++++--- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/libc/include/limits.h b/libc/include/limits.h index c32ec46a..c4ac0d9f 100644 --- a/libc/include/limits.h +++ b/libc/include/limits.h @@ -11,12 +11,6 @@ __BEGIN_DECLS // glibc seems to only define numerical // and posix constants -#if defined __GNUC__ && !defined _GCC_LIMITS_H_ - #include_next -#else - #error "unsupported compiler" -#endif - __END_DECLS #endif diff --git a/libc/include/sys/mman.h b/libc/include/sys/mman.h index 48292cf3..ee79bc85 100644 --- a/libc/include/sys/mman.h +++ b/libc/include/sys/mman.h @@ -12,9 +12,10 @@ __BEGIN_DECLS #define PROT_READ 0x04 #define PROT_WRITE 0x08 -#define MAP_FIXED 0x01 -#define MAP_PRIVATE 0x02 -#define MAP_SHARED 0x04 +#define MAP_FIXED 0x01 +#define MAP_PRIVATE 0x02 +#define MAP_SHARED 0x04 +#define MAP_ANONYMOUS 0x08 #define MS_ASYNC 0x01 #define MS_INVALIDATE 0x02