Commit 84f72efd authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Fix compilation failure introduced in 2012-09-30T06:19:33Z!eggert@cs.ucla.edu.

 src/profiler.c (Fprofiler_cpu_stop): Use timer_settime only if
 HAVE_TIMER_SETTIME is defined.
parent d89460ed
2012-09-30 Eli Zaretskii <eliz@gnu.org>
* profiler.c (Fprofiler_cpu_stop): Use timer_settime only if
HAVE_TIMER_SETTIME is defined.
2012-09-30 Paul Eggert <eggert@cs.ucla.edu>
Profiler improvements: more-accurate timers, overflow checks.
......@@ -8,7 +13,7 @@
(record_backtrace, handle_profiler_signal): Saturate on fixnum overflow.
(profiler_timer, profiler_timer_ok) [HAVE_TIMER_SETTIME]:
New static vars.
(enum profiler_cpu_running): New enumn.
(enum profiler_cpu_running): New enum.
(profiler_cpu_running): Now of that enum type, not bool.
All uses changed to store the new value.
(handle_profiler_signal): Rename from sigprof_handler_1,
......
......@@ -349,6 +349,7 @@ Return non-nil if the profiler was running. */)
case NOT_RUNNING:
return Qnil;
#ifdef HAVE_TIMER_SETTIME
case TIMER_SETTIME_RUNNING:
{
struct itimerspec disable;
......@@ -356,6 +357,7 @@ Return non-nil if the profiler was running. */)
timer_settime (profiler_timer, 0, &disable, 0);
}
break;
#endif
case SETITIMER_RUNNING:
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment