summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Brown <kbrown@cornell.edu>2015-06-21 16:18:48 -0400
committerKen Brown <kbrown@cornell.edu>2015-06-21 16:18:48 -0400
commit5fac0dee87ea5d4aa90ee93606c19785919da105 (patch)
tree5d64329884233d5769a40333707d7013d4f28831
parent38bb9ff0f4b92836199d8b3a0ee3903428bb7851 (diff)
Drop support for CPU profiling on Cygwin
* src/syssignal.h (PROFILER_CPU_SUPPORT): Don't define on Cygwin. (Bug#20843)
-rw-r--r--src/syssignal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/syssignal.h b/src/syssignal.h
index b536eb501b..28824003c5 100644
--- a/src/syssignal.h
+++ b/src/syssignal.h
@@ -36,7 +36,9 @@ extern void unblock_tty_out_signal (sigset_t const *);
# define HAVE_ITIMERSPEC
#endif
-#if (defined SIGPROF && !defined PROFILING \
+/* On Cygwin, setitimer does not support ITIMER_PROF, so we can't
+ support CPU profiling. */
+#if (defined SIGPROF && !defined PROFILING && !defined CYGWIN \
&& (defined HAVE_SETITIMER || defined HAVE_ITIMERSPEC))
# define PROFILER_CPU_SUPPORT
#endif