diff --git a/os/osinit.c b/os/osinit.c index 1c3f63876..784c9ddc7 100644 --- a/os/osinit.c +++ b/os/osinit.c @@ -59,7 +59,7 @@ SOFTWARE. #ifdef HAVE_DLFCN_H #include #endif -#ifdef HAVE_BACKTRACE +#if defined(HAVE_BACKTRACE) && defined(HAVE_EXECINFO_H) #include #endif @@ -206,7 +206,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.