libsysprof-capture: use sysconf() instead of getpagesize()

This commit is contained in:
Christian Hergert
2020-02-13 14:29:35 -08:00
parent 6cb55f4d71
commit 19e077736b

View File

@ -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
} }