From a8f61d013b5a291294ef9cdb23f0010841e93f03 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Mon, 16 Nov 2020 14:14:16 -0800 Subject: [PATCH] libsysprof: use private helper for getpagesize() --- src/libsysprof/sysprof-callgraph-profile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libsysprof/sysprof-callgraph-profile.c b/src/libsysprof/sysprof-callgraph-profile.c index 1e146d99..2991202b 100644 --- a/src/libsysprof/sysprof-callgraph-profile.c +++ b/src/libsysprof/sysprof-callgraph-profile.c @@ -45,6 +45,8 @@ #include "../stackstash.h" +#include "sysprof-capture-util-private.h" + #include "sysprof-callgraph-profile.h" #include "sysprof-capture-reader.h" #include "sysprof-capture-symbol-resolver.h" @@ -174,7 +176,7 @@ sysprof_callgraph_profile_class_init (SysprofCallgraphProfileClass *klass) static void sysprof_callgraph_profile_init (SysprofCallgraphProfile *self) { - self->symbols = g_string_chunk_new (getpagesize ()); + self->symbols = g_string_chunk_new (_sysprof_getpagesize ()); self->tags = g_hash_table_new (g_str_hash, g_str_equal); }