aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--auto.def2
-rw-r--r--jim.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/auto.def b/auto.def
index 7483db2..5781d98 100644
--- a/auto.def
+++ b/auto.def
@@ -122,7 +122,7 @@ if {[opt-bool coverage]} {
}
cc-check-includes time.h sys/time.h sys/socket.h netinet/in.h arpa/inet.h netdb.h
-cc-check-includes util.h pty.h sys/un.h dlfcn.h unistd.h dirent.h crt_externs.h
+cc-check-includes util.h pty.h sys/un.h dlfcn.h unistd.h dirent.h crt_externs.h execinfo.h
# Check sizeof time_t so we can warn on non-Y2038 compliance
cc-with {-includes time.h} {
diff --git a/jim.c b/jim.c
index eef1293..d9c7fe0 100644
--- a/jim.c
+++ b/jim.c
@@ -64,7 +64,7 @@
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
-#ifdef HAVE_BACKTRACE
+#ifdef HAVE_EXECINFO_H
#include <execinfo.h>
#endif
#ifdef HAVE_CRT_EXTERNS_H
@@ -635,7 +635,7 @@ static void JimPanicDump(int condition, const char *fmt, ...)
fprintf(stderr, "\n\n");
va_end(ap);
-#ifdef HAVE_BACKTRACE
+#if defined(HAVE_BACKTRACE)
{
void *array[40];
int size, i;