diff options
Diffstat (limited to 'src/profiler.c')
-rw-r--r-- | src/profiler.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/profiler.c b/src/profiler.c index 844c1f21ca8..07e21aeab10 100644 --- a/src/profiler.c +++ b/src/profiler.c @@ -201,7 +201,12 @@ static bool profiler_timer_ok; /* Status of sampling profiler. */ static enum profiler_cpu_running - { NOT_RUNNING, TIMER_SETTIME_RUNNING, SETITIMER_RUNNING } + { NOT_RUNNING, +#ifdef HAVE_ITIMERSPEC + TIMER_SETTIME_RUNNING, +#endif + SETITIMER_RUNNING + } profiler_cpu_running; /* Hash-table log of CPU profiler. */ |