use getpagesize() instead of sysconf
This commit is contained in:
parent
67a86f31d7
commit
c4a3f548e2
|
@ -134,7 +134,7 @@ int sigar_os_open(sigar_t **sigar)
|
||||||
}
|
}
|
||||||
|
|
||||||
(*sigar)->pagesize = 0;
|
(*sigar)->pagesize = 0;
|
||||||
i = sysconf(_SC_PAGESIZE);
|
i = getpagesize();
|
||||||
while ((i >>= 1) > 0) {
|
while ((i >>= 1) > 0) {
|
||||||
(*sigar)->pagesize++;
|
(*sigar)->pagesize++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue