summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/malloc/malloc.c')
-rw-r--r--libc/stdlib/malloc/malloc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/stdlib/malloc/malloc.c b/libc/stdlib/malloc/malloc.c
index 4ed9fe873..88d8698b2 100644
--- a/libc/stdlib/malloc/malloc.c
+++ b/libc/stdlib/malloc/malloc.c
@@ -191,10 +191,9 @@ static void *hunk_alloc(int size)
{
if ((p = (Hunk_t*)mmap(HUNK_MSTART,HUNK_MSIZE,PROT_READ|PROT_WRITE,
#ifdef __HAS_NO_MMU__
- MAP_PRIVATE|MAP_ANONYMOUS
-#else
-
MAP_SHARED|MAP_ANONYMOUS
+#else
+ MAP_PRIVATE|MAP_ANONYMOUS
#endif
,0,0)) == (Hunk_t*)MAP_FAILED)
return NULL;