summaryrefslogtreecommitdiff
path: root/libc/stdlib
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-08-13 23:39:45 +0000
committerEric Andersen <andersen@codepoet.org>2004-08-13 23:39:45 +0000
commit64c5a652fb76e999eea27aed777d710d747ed949 (patch)
tree99f55f2b3ed8fd1b6d0fda2523d5a6ee7063b05a /libc/stdlib
parent9f47eaf3223c17a99cc88aea3287697e2635681f (diff)
Fixup PAGE_SIZE problems
-Erik
Diffstat (limited to 'libc/stdlib')
-rw-r--r--libc/stdlib/malloc/malloc.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/stdlib/malloc/malloc.h b/libc/stdlib/malloc/malloc.h
index 37afe7299..ef95994a6 100644
--- a/libc/stdlib/malloc/malloc.h
+++ b/libc/stdlib/malloc/malloc.h
@@ -14,9 +14,8 @@
/* The alignment we guarantee for malloc return values. */
#define MALLOC_ALIGNMENT (sizeof (double))
-/* The system pagesize we assume; we really ought to get it with
- getpagesize, but gee, how annoying. */
-#define MALLOC_PAGE_SIZE 4096
+/* The system pagesize... */
+#define MALLOC_PAGE_SIZE _dl_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