Browse Source

riscv: add the MAP_UNINITIALIZED definition

This avoids a nommu build failure.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Christoph Hellwig 4 years ago
parent
commit
ed495bf14d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      libc/sysdeps/linux/riscv64/bits/mman.h

+ 1 - 0
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.  */