commit fbe8627183f5c8a65025d4e10d54b9f2ea4c63dd
parent fcacada2e7f64a6bee74dec823fd82377e16e170
Author: sin <sin@2f30.org>
Date: Tue, 30 Jul 2013 10:37:45 +0100
Don't use MAP_ANONYMOUS, use MAP_ANON
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/alloc.c b/alloc.c
@@ -32,8 +32,7 @@ mmap_page_aligned(size_t nbytes)
nbytes = (nbytes + 0x1000) & ~(0x1000 - 1);
addr = mmap(0, nbytes + 0x1000,
- PROT_READ | PROT_WRITE,
- MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
+ PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
if (addr == MAP_FAILED)
return NULL;
ret = mprotect((char *)addr + nbytes, 0x1000,