diff --git a/src/libsysprof-capture/sysprof-capture-util.c b/src/libsysprof-capture/sysprof-capture-util.c index cf81c491..58336e7f 100644 --- a/src/libsysprof-capture/sysprof-capture-util.c +++ b/src/libsysprof-capture/sysprof-capture-util.c @@ -60,6 +60,7 @@ #include #include +#include #ifdef G_OS_WIN32 # include @@ -85,7 +86,7 @@ size_t GetSystemInfo (&system_info); pgsz = system_info.dwPageSize; #else - pgsz = getpagesize (); + pgsz = sysconf (_SC_PAGESIZE); #endif }