[git commit] malloc.h: use sysconf(_SC_PAGESIZE) instead of __pagesize
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Fri Jun 15 12:00:33 UTC 2012
commit: http://git.uclibc.org/uClibc/commit/?id=13640c8807e1e4e9b747b82ee05ad54e37422c90
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
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 1ce19f1..53683c4 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
More information about the uClibc-cvs
mailing list