Преглед на файлове

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.
Nick Mathewson преди 10 години
родител
ревизия
93c99508d2
променени са 1 файла, в които са добавени 6 реда и са изтрити 4 реда
  1. 6 4
      src/common/backtrace.c

+ 6 - 4
src/common/backtrace.c

@@ -21,11 +21,13 @@
 #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) && \