]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make header includes match declarations in pc_from_ucontext.m4
authorNick Mathewson <nickm@torproject.org>
Mon, 18 Nov 2013 16:34:15 +0000 (11:34 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 18 Nov 2013 16:34:15 +0000 (11:34 -0500)
With any luck, this will clean up errors where we detect that
REG_{EIP,RIP} is present in autoconf, but when we go to include it,
it isn't there.

src/common/backtrace.c

index 78bc66efbcfde82bb04c9d5a353c06e136aab5a1..32e5362e8d35de09d99f25e82a819721c1554bcc 100644 (file)
 #ifdef HAVE_SIGNAL_H
 #include <signal.h>
 #endif
-#ifdef HAVE_UCONTEXT_H
-#include <ucontext.h>
-#endif
-#ifdef HAVE_SYS_UCONTEXT_H
+
+#ifdef HAVE_CYGWIN_SIGNAL_H
+#include <cygwin/signal.h>
+#elif HAVE_SYS_UCONTEXT_H
 #include <sys/ucontext.h>
+#elif defined(HAVE_UCONTEXT_H)
+#include <ucontext.h>
 #endif
 
 #if defined(HAVE_EXECINFO_H) && defined(HAVE_BACKTRACE) && \