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_cpu_aid_prepare (SysprofAid *self,
SysprofProfiler *profiler)
{
#ifdef __linux__
g_autoptr(SysprofSource) source = NULL;
g_assert (SYSPROF_IS_CPU_AID (self));
@ -59,6 +60,7 @@ sysprof_cpu_aid_prepare (SysprofAid *self,
source = sysprof_hostinfo_source_new ();
sysprof_profiler_add_source (profiler, source);
#endif
}
static void

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

View File

@ -53,7 +53,6 @@ sysprof_recording_state_view_notify_elapsed (SysprofRecordingStateView *self,
SysprofProfiler *profiler)
{
SysprofRecordingStateViewPrivate *priv = sysprof_recording_state_view_get_instance_private (self);
g_autofree gchar *str = NULL;
SysprofCaptureWriter *writer;
gint64 elapsed;