diff --git a/libs/freetdm/src/ftdm_backtrace.c b/libs/freetdm/src/ftdm_backtrace.c index 70eef159d1..b27c8ebbe8 100644 --- a/libs/freetdm/src/ftdm_backtrace.c +++ b/libs/freetdm/src/ftdm_backtrace.c @@ -5,7 +5,7 @@ #define _BSD_SOURCE #include "private/ftdm_core.h" -#ifdef HAVE_EXECINFO_H +#if defined(HAVE_EXECINFO_H) && !defined(__FreeBSD__) #include #include #include