summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorlinted <linted@users.noreply.github.com>2023-01-21 16:19:23 -0500
committerWaldemar Brodkorb <wbx@openadk.org>2023-01-22 09:31:39 +0100
commitb53a767cb52170da1fc32ff5340e8c0decaf9528 (patch)
tree38ef375505c4bd9300e5da3e83e426031c3174dd /libc/sysdeps
parent60f1d7cff4c17d3be239bb86237010404d75f7b7 (diff)
Defined MAP_FIXED_NOREPLACE
Added definition for MAP_FIXED_NOREPLACE which was added in kernel 4.17 Signed-off-by: linted <linted@users.noreply.github.com>
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/common/bits/mman-linux.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/bits/mman-linux.h b/libc/sysdeps/linux/common/bits/mman-linux.h
index 6ca08415a..4947ddd89 100644
--- a/libc/sysdeps/linux/common/bits/mman-linux.h
+++ b/libc/sysdeps/linux/common/bits/mman-linux.h
@@ -46,6 +46,7 @@
/* Other flags. */
#define MAP_FIXED 0x10 /* Interpret addr exactly. */
+# define MAP_FIXED_NOREPLACE 0x100000 /* Used to solve problem with MAP_FIXED */
#ifdef __USE_MISC
# define MAP_FILE 0
# ifdef __MAP_ANONYMOUS