From a4541d42ff420e9e9ece6aaa1d70c29162d869c8 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 16 Aug 2004 19:21:45 +0000 Subject: The variable used to store pagesize is not the same as the _dl_pagesize variable in ldso, so avoid aliasing. -Erik --- libc/stdlib/malloc/malloc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libc/stdlib/malloc') 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 -- cgit v1.2.3