sysconf creates a lot of code dependencies. getpagesize dosen't. staticly linked code that calls malloc is now much smaller. Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
@@ -138,7 +138,7 @@ __UCLIBC_MUTEX_EXTERN(__malloc_lock)
*/
#ifndef malloc_getpagesize
# include <unistd.h>
-# define malloc_getpagesize sysconf(_SC_PAGESIZE)
+# define malloc_getpagesize getpagesize()
#else /* just guess */
# define malloc_getpagesize (4096)
#endif