From 13640c8807e1e4e9b747b82ee05ad54e37422c90 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 24 Mar 2011 14:53:41 +0100 Subject: malloc.h: use sysconf(_SC_PAGESIZE) instead of __pagesize Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/stdlib/malloc/malloc.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libc') 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 -- cgit v1.2.3