summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc/malloc.h
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-24 14:53:41 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:33 +0200
commit13640c8807e1e4e9b747b82ee05ad54e37422c90 (patch)
treee6c8ff20df15734b142cd0d0e4dafc8b8f3fcc62 /libc/stdlib/malloc/malloc.h
parenta5de87e5b525b5f7c8353d98de8d08bcbc6d3486 (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>
Diffstat (limited to 'libc/stdlib/malloc/malloc.h')
-rw-r--r--libc/stdlib/malloc/malloc.h3
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