summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc/malloc.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-08-16 19:21:45 +0000
committerEric Andersen <andersen@codepoet.org>2004-08-16 19:21:45 +0000
commita4541d42ff420e9e9ece6aaa1d70c29162d869c8 (patch)
treee5d9fb7f2da96a590d5ba6649551ba41329ce472 /libc/stdlib/malloc/malloc.h
parentaa1a5f5c1a6cf2ff1d8cf9611133c5872165c47e (diff)
The variable used to store pagesize is not the same as the
_dl_pagesize variable in ldso, so avoid aliasing. -Erik
Diffstat (limited to 'libc/stdlib/malloc/malloc.h')
-rw-r--r--libc/stdlib/malloc/malloc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/stdlib/malloc/malloc.h b/libc/stdlib/malloc/malloc.h
index ef95994a6..08ebfdf5b 100644
--- a/libc/stdlib/malloc/malloc.h
+++ b/libc/stdlib/malloc/malloc.h
@@ -15,7 +15,8 @@
#define MALLOC_ALIGNMENT (sizeof (double))
/* The system pagesize... */
-#define MALLOC_PAGE_SIZE _dl_pagesize
+extern size_t __pagesize;
+#define MALLOC_PAGE_SIZE __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