memdiskfind: abstract get page size so we can compile against klibc
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 8 Dec 2010 00:35:01 +0000 (16:35 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 8 Dec 2010 00:35:01 +0000 (16:35 -0800)
commita6f3691938a78833fc1643a5dd6db66dbef81644
treeb0f58b37efe6674660ead4ff0029c5a4b96980cb
parentd6fa7f83ac4e4c6498f6a28e5c90ecc3f2f6aa62
memdiskfind: abstract get page size so we can compile against klibc

klibc doesn't have sysconf(), because it involves a hideously
inefficient multiplex.  Thus, if _SC_PAGESIZE is not defined, invoke
getpagesize().  Call the routine get_page_size() so it doesn't
conflict on a platform which has both sysconf(_SC_PAGESIZE) and
getpagesize().

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
utils/memdiskfind.c