mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-08 22:20:54 +00:00
libsysprof-capture: use sysconf() instead of getpagesize()
This commit is contained in:
@ -60,6 +60,7 @@
|
|||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
# include <process.h>
|
# include <process.h>
|
||||||
@ -85,7 +86,7 @@ size_t
|
|||||||
GetSystemInfo (&system_info);
|
GetSystemInfo (&system_info);
|
||||||
pgsz = system_info.dwPageSize;
|
pgsz = system_info.dwPageSize;
|
||||||
#else
|
#else
|
||||||
pgsz = getpagesize ();
|
pgsz = sysconf (_SC_PAGESIZE);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user