mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
perf: use #ifdef, not #if
config.h does not unconditionally define these, they are not defined when inactive.
This commit is contained in:
@ -244,7 +244,7 @@ sysprofd_perf_event_open (sd_bus_message *msg,
|
||||
attr.type = type;
|
||||
attr.wakeup_events = wakeup_events;
|
||||
|
||||
#if HAVE_PERF_CLOCKID
|
||||
#ifdef HAVE_PERF_CLOCKID
|
||||
if (!use_clockid || clockid < 0)
|
||||
attr.clockid = CLOCK_MONOTONIC_RAW;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user