[git commit future 1/1] malloc.h: use sysconf(_SC_PAGESIZE) instead of __pagesize

Khem Raj raj.khem at gmail.com
Sat Mar 19 18:51:25 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=01d45b8955e26f10b2ca1548772af36135ee0c8e
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
 libc/stdlib/malloc/malloc.h |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/libc/stdlib/malloc/malloc.h b/libc/stdlib/malloc/malloc.h
index 8c6c5fc..298dc60 100644
--- a/libc/stdlib/malloc/malloc.h
+++ b/libc/stdlib/malloc/malloc.h
@@ -20,8 +20,7 @@
   __alignof__ (double __attribute_aligned__ (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
-- 
1.7.3.4



More information about the uClibc-cvs mailing list