diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-10-12 15:29:43 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-10-12 15:29:43 +0000 |
commit | 61885f3c4185f3aea2bd3b98f954935d221458e7 (patch) | |
tree | fdf2108d545be0bdfb76f44d697237056e86bc31 /libc/stdlib/malloc/malloc.c | |
parent | a99617fe8fdb56b3e877558bfd6572ce65ad39de (diff) |
Screwed up non-mmu support. #define was backwards.
-Erik
Diffstat (limited to 'libc/stdlib/malloc/malloc.c')
-rw-r--r-- | libc/stdlib/malloc/malloc.c | 5 |
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; |