diff --git a/os/osinit.c b/os/osinit.c index 71c943a38..3e18b51b0 100644 --- a/os/osinit.c +++ b/os/osinit.c @@ -54,7 +54,7 @@ SOFTWARE. #ifdef HAVE_DLFCN_H #include #endif -#ifdef HAVE_BACKTRACE +#if defined(HAVE_BACKTRACE) && defined(HAVE_EXECINFO_H) #include #endif @@ -202,7 +202,7 @@ OsInit(void) if (!server_poll) FatalError("failed to allocate poll structure"); -#ifdef HAVE_BACKTRACE +#if defined(HAVE_BACKTRACE) && defined(HAVE_EXECINFO_H) /* * initialize the backtracer, since the ctor calls dlopen(), which * calls malloc(), which isn't signal-safe.