summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-06-24 13:37:37 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2019-07-05 12:47:20 (GMT)
commited495bf14d60373c13357e0783ffd3b96e076360 (patch)
tree9084a6a5cd1eaceabf774c6a696318757d812b67
parent4f506bb95ad4bc55e6174cef98803802a35b050e (diff)
riscv: add the MAP_UNINITIALIZED definition
This avoids a nommu build failure. Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--libc/sysdeps/linux/riscv64/bits/mman.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/riscv64/bits/mman.h b/libc/sysdeps/linux/riscv64/bits/mman.h
index 316f87d..fa6f8e6 100644
--- a/libc/sysdeps/linux/riscv64/bits/mman.h
+++ b/libc/sysdeps/linux/riscv64/bits/mman.h
@@ -31,6 +31,7 @@
# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
# define MAP_SYNC 0x80000 /* Perform synchronous page
faults for the mapping. */
+# define MAP_UNINITIALIZED 0x4000000 /* For anonymous mmap, memory could - be uninitialized. */
#endif
/* Include generic Linux declarations. */