execinfo.h is unnecessary if HAVE_BACKTRACE is not defined.
This increases portability for systems without execinfo.h
#include <string.h>
#include <signal.h>
#include <stdlib.h>
-#include <execinfo.h>
#include <errno.h>
+#ifdef HAVE_BACKTRACE
+#include <execinfo.h>
+#endif
+
static int teardown_sigs[] = { SIGHUP, SIGINT, SIGTERM };
static int ignore_sigs[] = { SIGPIPE};
static int fail_sigs[] = { SIGILL, SIGTRAP, SIGABRT, SIGBUS, SIGFPE, SIGSEGV };