X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/f7794460e8e9e0c514b0cb01dd010b531c21169c..4ce68f8f0f1dd1aa518e6e682b2c2cef1f49d953:/src/profiler.c diff --git a/src/profiler.c b/src/profiler.c index 844c1f21ca..07e21aeab1 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. */