diff --git a/configure.in b/configure.in index b75a2de39e..9599c2617f 100644 --- a/configure.in +++ b/configure.in @@ -537,6 +537,8 @@ if test "x${ac_cv_func_mlockall}" = "xyes"; then USE_MLOCKALL=yes ;; *-freebsd*) + APR_ADDTO(SWITCH_AM_CFLAGS, -fPIC) + APR_ADDTO(SWITCH_AM_CXXFLAGS, -fPIC) AC_MSG_RESULT([no, broken for non-root users]) ;; *) diff --git a/src/mod/applications/mod_spandsp/mod_spandsp_modem.h b/src/mod/applications/mod_spandsp/mod_spandsp_modem.h index dfb946f7a1..326ad556d0 100644 --- a/src/mod/applications/mod_spandsp/mod_spandsp_modem.h +++ b/src/mod/applications/mod_spandsp/mod_spandsp_modem.h @@ -49,6 +49,9 @@ #ifdef __APPLE__ #include #include +#elif defined(__FreeBSD__) +#include +#include #else #include #endif