diff options
author | Ken Brown <kbrown@cornell.edu> | 2019-02-17 12:10:26 -0500 |
---|---|---|
committer | Ken Brown <kbrown@cornell.edu> | 2019-02-18 12:16:06 -0500 |
commit | eccfdaff5b52e1fadbaf2fbbb6c1366a7addf377 (patch) | |
tree | d557ecc6a8e1825b2185c8cbd4d20d1b19428bd9 /src/profiler.c | |
parent | 2ede38ce4bf336c573450c61a2e9a41fb7ebe1be (diff) | |
download | emacs-eccfdaff5b52e1fadbaf2fbbb6c1366a7addf377.tar.gz emacs-eccfdaff5b52e1fadbaf2fbbb6c1366a7addf377.tar.bz2 emacs-eccfdaff5b52e1fadbaf2fbbb6c1366a7addf377.zip |
Use 'timer_getoverrun' on Cygwin when possible
* configure.ac: Add a check for the 'timer_getoverrun' function.
* src/profiler.c [CYGWIN] : Define 'timer_getoverrun' as a
macro only on versions of Cygwin where it is not already
defined as a function.
Diffstat (limited to 'src/profiler.c')
-rw-r--r-- | src/profiler.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/profiler.c b/src/profiler.c index 15a0eef0d3e..293e52633a8 100644 --- a/src/profiler.c +++ b/src/profiler.c @@ -232,9 +232,10 @@ static EMACS_INT current_sampling_interval; /* Signal handler for sampling profiler. */ -/* timer_getoverrun is not implemented on Cygwin, but the following - seems to be good enough for profiling. */ -#ifdef CYGWIN +/* timer_getoverrun is not implemented on Cygwin prior to + cygwin-3.0.0, but the following seems to be good enough for + profiling. */ +#if defined CYGWIN && !defined HAVE_TIMER_GETOVERRUN #define timer_getoverrun(x) 0 #endif |