diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-03-24 14:53:41 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:33 +0200 |
commit | 13640c8807e1e4e9b747b82ee05ad54e37422c90 (patch) | |
tree | e6c8ff20df15734b142cd0d0e4dafc8b8f3fcc62 | |
parent | a5de87e5b525b5f7c8353d98de8d08bcbc6d3486 (diff) |
malloc.h: use sysconf(_SC_PAGESIZE) instead of __pagesize
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r-- | libc/stdlib/malloc/malloc.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libc/stdlib/malloc/malloc.h b/libc/stdlib/malloc/malloc.h index 1ce19f1b3..53683c479 100644 --- a/libc/stdlib/malloc/malloc.h +++ b/libc/stdlib/malloc/malloc.h @@ -20,8 +20,7 @@ (__alignof__ (double) > sizeof (size_t) ? __alignof__ (double) : sizeof (size_t)) /* The system pagesize... */ -extern size_t __pagesize; -#define MALLOC_PAGE_SIZE __pagesize +#define MALLOC_PAGE_SIZE sysconf(_SC_PAGESIZE) /* The minimum size of block we request from the the system to extend the heap for small allocations (we may request a bigger block if necessary to |