summaryrefslogtreecommitdiff
path: root/ldso/include
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2018-01-28 04:30:35 +0000
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2018-02-03 19:29:51 +0000
commit7cc754bc93eafa78695ec03bb0e4e8256d52c76d (patch)
treedc55c7555ce60aa779ea6e71c5856e4d6db74a6c /ldso/include
parent8948296356072119a07c6b9435dc16bdc74bdc56 (diff)
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.
Diffstat (limited to 'ldso/include')
-rw-r--r--ldso/include/ldso.h6
1 files changed, 6 insertions, 0 deletions
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 <features.h>
+#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)