perf: use #ifdef, not #if

config.h does not unconditionally define these, they are not defined when
inactive.
This commit is contained in:
Christian Hergert
2016-04-16 16:56:41 -07:00
parent 06aaff90e5
commit 9f8f33b210
3 changed files with 4 additions and 4 deletions

View File

@ -298,7 +298,7 @@ sp_perf_source_start_pid (SpPerfSource *self,
attr.exclude_idle = 1;
attr.sample_id_all = 1;
#if HAVE_PERF_CLOCKID
#ifdef HAVE_PERF_CLOCKID
attr.clockid = sp_clock;
attr.use_clockid = 1;
#endif