]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix compilation failure introduced in 2012-09-30T06:19:33Z!eggert@cs.ucla.edu.
authorEli Zaretskii <eliz@gnu.org>
Sun, 30 Sep 2012 07:26:32 +0000 (09:26 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 30 Sep 2012 07:26:32 +0000 (09:26 +0200)
 src/profiler.c (Fprofiler_cpu_stop): Use timer_settime only if
 HAVE_TIMER_SETTIME is defined.

src/ChangeLog
src/profiler.c

index 97f955e71360ef46934398d53a7137dd52b15379..cb8692b45894ecb4b9770c2743cbf769aa8cd3d4 100644 (file)
@@ -1,3 +1,8 @@
+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,
index 489c68b729140240f385fe745b247f4e1a03f3a8..90a85c5230e3a2555e80ac329109297e24eefe31 100644 (file)
@@ -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:
       {