summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/malloc')
-rw-r--r--libc/stdlib/malloc/Makefile2
-rw-r--r--libc/stdlib/malloc/malloc.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/libc/stdlib/malloc/Makefile b/libc/stdlib/malloc/Makefile
index 0824e71a8..920276c10 100644
--- a/libc/stdlib/malloc/Makefile
+++ b/libc/stdlib/malloc/Makefile
@@ -21,7 +21,7 @@
# respective copyright holders.
TOPDIR=../../
-include $(TOPDIR)Rules.make
+include $(TOPDIR)Rules.mak
LIBC=$(TOPDIR)libc.a
CSRC=malloc.c
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;