summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/malloc')
-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