From d144727bc3e5f77692fc2d6b5c1dbf5d05fc495c Mon Sep 17 00:00:00 2001 From: maximilian attems Date: Wed, 30 Jul 2008 11:46:32 +0200 Subject: use getpagesize() getpagesize() is said to be more portable than sysconf(_SC_PAGESIZE) to anything Linux. this patch helps klibc porting effort as the sysconf multiplex API is not supported there. also remove comment of the switch to sysconf in mkswap.c. Signed-off-by: maximilian attems --- tests/helpers/test_sysinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/helpers') diff --git a/tests/helpers/test_sysinfo.c b/tests/helpers/test_sysinfo.c index 00ee25230..4b71955c7 100644 --- a/tests/helpers/test_sysinfo.c +++ b/tests/helpers/test_sysinfo.c @@ -36,7 +36,7 @@ hlp_wordsize(void) int hlp_pagesize(void) { - printf("%d\n", (int) sysconf(_SC_PAGESIZE)); + printf("%d\n", getpagesize()); return 0; } -- cgit v1.2.3-55-g7522