use getpagesize() instead of sysconf

This commit is contained in:
Doug MacEachern 2007-04-21 15:33:03 +00:00
parent 67a86f31d7
commit c4a3f548e2
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ int sigar_os_open(sigar_t **sigar)
}
(*sigar)->pagesize = 0;
i = sysconf(_SC_PAGESIZE);
i = getpagesize();
while ((i >>= 1) > 0) {
(*sigar)->pagesize++;
}