diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-07-27 02:13:40 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-07-27 14:33:48 -0400 |
commit | cafbb2a0a0ac469393dc3192ba67ffbe1ddb5d4e (patch) | |
tree | 3288171b43891d69bd4b85440916d1e415d3f479 /libc/stdlib | |
parent | fd826c72f8362d054c2d0064bff2b0830d2f29d1 (diff) |
malloc: simplify MAP_UNINITIALIZE ifdef logic
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libc/stdlib')
-rw-r--r-- | libc/stdlib/malloc-standard/malloc.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/libc/stdlib/malloc-standard/malloc.h b/libc/stdlib/malloc-standard/malloc.h index 7a2e66d16..73d4b124d 100644 --- a/libc/stdlib/malloc-standard/malloc.h +++ b/libc/stdlib/malloc-standard/malloc.h @@ -349,16 +349,13 @@ __UCLIBC_MUTEX_EXTERN(__malloc_lock); #endif #ifdef __ARCH_USE_MMU__ - -#define MMAP(addr, size, prot) \ - (mmap((addr), (size), (prot), MAP_PRIVATE|MAP_ANONYMOUS, 0, 0)) - +# define _MAP_UNINITIALIZE 0 #else +# define _MAP_UNINITIALIZE MAP_UNINITIALIZE +#endif #define MMAP(addr, size, prot) \ - (mmap((addr), (size), (prot), MAP_SHARED|MAP_ANONYMOUS|MAP_UNINITIALIZE, 0, 0)) - -#endif + (mmap((addr), (size), (prot), MAP_PRIVATE|MAP_ANONYMOUS|_MAP_UNINITIALIZE, 0, 0)) /* ----------------------- Chunk representations ----------------------- */ |