Skip to content

Commit c73f894

Browse files
authored
Merge pull request #1779 from Explorer09/configure-libunwind
Improve libunwind check in configure
2 parents e136be5 + 95a1ebe commit c73f894

File tree

2 files changed

+625
-382
lines changed

2 files changed

+625
-382
lines changed

CRT.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ in the source distribution for its full text.
2929
#include <sys/mman.h>
3030
#endif
3131

32-
#if defined(HAVE_LIBUNWIND_H) && defined(HAVE_LIBUNWIND)
32+
#if defined(HAVE_LIBUNWIND) && defined(HAVE_LOCAL_UNWIND)
3333
# define PRINT_BACKTRACE
3434
# define UNW_LOCAL_ONLY
3535
# include <libunwind.h>
@@ -1346,7 +1346,7 @@ void CRT_setColors(int colorScheme) {
13461346

13471347
#ifdef PRINT_BACKTRACE
13481348
static void print_backtrace(void) {
1349-
#if defined(HAVE_LIBUNWIND_H) && defined(HAVE_LIBUNWIND)
1349+
#if defined(HAVE_LIBUNWIND) && defined(HAVE_LOCAL_UNWIND)
13501350
unw_context_t context;
13511351
unw_getcontext(&context);
13521352

0 commit comments

Comments
 (0)