emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r110271: Fix compilation failure intr


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r110271: Fix compilation failure introduced in revision 110270.
Date: Sun, 30 Sep 2012 09:26:32 +0200
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 110271
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Sun 2012-09-30 09:26:32 +0200
message:
  Fix compilation failure introduced in revision 110270.
  
   src/profiler.c (Fprofiler_cpu_stop): Use timer_settime only if
   HAVE_TIMER_SETTIME is defined.
modified:
  src/ChangeLog
  src/profiler.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-09-30 06:19:33 +0000
+++ b/src/ChangeLog     2012-09-30 07:26:32 +0000
@@ -1,3 +1,8 @@
+2012-09-30  Eli Zaretskii  <address@hidden>
+
+       * profiler.c (Fprofiler_cpu_stop): Use timer_settime only if
+       HAVE_TIMER_SETTIME is defined.
+
 2012-09-30  Paul Eggert  <address@hidden>
 
        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,

=== modified file 'src/profiler.c'
--- a/src/profiler.c    2012-09-30 06:19:33 +0000
+++ b/src/profiler.c    2012-09-30 07:26:32 +0000
@@ -349,6 +349,7 @@
     case NOT_RUNNING:
       return Qnil;
 
+#ifdef HAVE_TIMER_SETTIME
     case TIMER_SETTIME_RUNNING:
       {
        struct itimerspec disable;
@@ -356,6 +357,7 @@
        timer_settime (profiler_timer, 0, &disable, 0);
       }
       break;
+#endif
 
     case SETITIMER_RUNNING:
       {


reply via email to

[Prev in Thread] Current Thread [Next in Thread]