From 19e077736be5722955a30de4d2fe014f3d69802a Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Thu, 13 Feb 2020 14:29:35 -0800 Subject: [PATCH] libsysprof-capture: use sysconf() instead of getpagesize() --- src/libsysprof-capture/sysprof-capture-util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }