From 7cc754bc93eafa78695ec03bb0e4e8256d52c76d Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 28 Jan 2018 04:30:35 +0000 Subject: bits/mman.h: consolidate header file Sync with GNU C library and consolidate duplicate non architecture specific defines. MAP_UNINITIALIZED is only defined to 0x4000000 and used by the Linux kernel when CONFIG_MMAP_ALLOW_UNINITIALIZED is enabled. CONFIG_MMAP_ALLOW_UNINITIALIZED is only available for nommu. See Documentation/nommu-mmap.txt. --- ldso/include/ldso.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ldso/include/ldso.h') diff --git a/ldso/include/ldso.h b/ldso/include/ldso.h index 884c116b9..f19957d1d 100644 --- a/ldso/include/ldso.h +++ b/ldso/include/ldso.h @@ -9,6 +9,12 @@ #include +#ifdef __ARCH_USE_MMU__ +# define _MAP_UNINITIALIZED 0 +#else +# define _MAP_UNINITIALIZED MAP_UNINITIALIZED +#endif + /* Prepare for the case that `__builtin_expect' is not available. */ #if defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ < 96 #define __builtin_expect(x, expected_value) (x) -- cgit v1.2.3