From: Paul Eggert Date: Sun, 30 Sep 2012 08:15:11 +0000 (-0700) Subject: * syssignal.h (PROFILER_CPU_SUPPORT): Don't define if PROFILING. X-Git-Tag: emacs-24.2.90~244^2~11 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cb5b02667a8dcfc00d990103b2fb3236259bd627;p=emacs.git * syssignal.h (PROFILER_CPU_SUPPORT): Don't define if PROFILING. Suggested by Eli Zaretskii in . --- diff --git a/src/ChangeLog b/src/ChangeLog index cb8692b4589..e07f7e131cb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2012-09-30 Paul Eggert + + * syssignal.h (PROFILER_CPU_SUPPORT): Don't define if PROFILING. + Suggested by Eli Zaretskii in + . + 2012-09-30 Eli Zaretskii * profiler.c (Fprofiler_cpu_stop): Use timer_settime only if diff --git a/src/syssignal.h b/src/syssignal.h index 0bc856769ba..ece2515dec9 100644 --- a/src/syssignal.h +++ b/src/syssignal.h @@ -29,7 +29,8 @@ extern void init_signals (bool); #define FORWARD_SIGNAL_TO_MAIN_THREAD #endif -#if defined SIGPROF && (defined HAVE_TIMER_SETTIME || defined HAVE_SETITIMER) +#if (defined SIGPROF && (defined HAVE_TIMER_SETTIME || defined HAVE_SETITIMER) \ + && !defined PROFILING) # define PROFILER_CPU_SUPPORT #endif