From 93c99508d2440f4ff11df62315cf54f2acd932f0 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 18 Nov 2013 11:34:15 -0500 Subject: Make header includes match declarations in pc_from_ucontext.m4 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 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/common') diff --git a/src/common/backtrace.c b/src/common/backtrace.c index 78bc66efbc..32e5362e8d 100644 --- a/src/common/backtrace.c +++ b/src/common/backtrace.c @@ -21,11 +21,13 @@ #ifdef HAVE_SIGNAL_H #include #endif -#ifdef HAVE_UCONTEXT_H -#include -#endif -#ifdef HAVE_SYS_UCONTEXT_H + +#ifdef HAVE_CYGWIN_SIGNAL_H +#include +#elif HAVE_SYS_UCONTEXT_H #include +#elif defined(HAVE_UCONTEXT_H) +#include #endif #if defined(HAVE_EXECINFO_H) && defined(HAVE_BACKTRACE) && \ -- cgit v1.2.3-54-g00ecf