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

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> 2012-09-30 Paul Eggert <eggert@cs.ucla.edu>
Profiler improvements: more-accurate timers, overflow checks. Profiler improvements: more-accurate timers, overflow checks.
...@@ -8,7 +13,7 @@ ...@@ -8,7 +13,7 @@
(record_backtrace, handle_profiler_signal): Saturate on fixnum overflow. (record_backtrace, handle_profiler_signal): Saturate on fixnum overflow.
(profiler_timer, profiler_timer_ok) [HAVE_TIMER_SETTIME]: (profiler_timer, profiler_timer_ok) [HAVE_TIMER_SETTIME]:
New static vars. 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. (profiler_cpu_running): Now of that enum type, not bool.
All uses changed to store the new value. All uses changed to store the new value.
(handle_profiler_signal): Rename from sigprof_handler_1, (handle_profiler_signal): Rename from sigprof_handler_1,
......
...@@ -349,6 +349,7 @@ Return non-nil if the profiler was running. */) ...@@ -349,6 +349,7 @@ Return non-nil if the profiler was running. */)
case NOT_RUNNING: case NOT_RUNNING:
return Qnil; return Qnil;
#ifdef HAVE_TIMER_SETTIME
case TIMER_SETTIME_RUNNING: case TIMER_SETTIME_RUNNING:
{ {
struct itimerspec disable; struct itimerspec disable;
...@@ -356,6 +357,7 @@ Return non-nil if the profiler was running. */) ...@@ -356,6 +357,7 @@ Return non-nil if the profiler was running. */)
timer_settime (profiler_timer, 0, &disable, 0); timer_settime (profiler_timer, 0, &disable, 0);
} }
break; break;
#endif
case SETITIMER_RUNNING: 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