build: fix build on macOS

This commit is contained in:
Christian Hergert
2019-06-04 14:35:48 -07:00
parent af2a17daa5
commit 807bff9152
9 changed files with 15 additions and 11 deletions

View File

@ -52,6 +52,7 @@ static void
sysprof_memory_aid_prepare (SysprofAid *self,
SysprofProfiler *profiler)
{
#ifdef __linux__
g_autoptr(SysprofSource) source = NULL;
g_assert (SYSPROF_IS_MEMORY_AID (self));
@ -59,6 +60,7 @@ sysprof_memory_aid_prepare (SysprofAid *self,
source = sysprof_memory_source_new ();
sysprof_profiler_add_source (profiler, source);
#endif
}
static void