From: Luigi Rizzo Date: Thu, 23 Mar 2006 12:47:50 +0000 (+0000) Subject: Fix a compile problem on FreeBSD for a missing header. X-Git-Tag: 1.4.0-beta1~2355 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6be9f5294839fcba1b7187fb2d89388247175bee;p=thirdparty%2Fasterisk.git Fix a compile problem on FreeBSD for a missing header. In this specific case the problem triggered on app_amd.c, but it keeps coming out from time to time so it is better to fix it in a more central place. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14320 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h index 139f4f81b9..afb2901699 100644 --- a/include/asterisk/compat.h +++ b/include/asterisk/compat.h @@ -84,6 +84,10 @@ int unsetenv(const char *name); #define HAVE_STRNLEN #endif +#ifdef __FreeBSD__ +#include +#endif + #ifdef SOLARIS #undef HAVE_VASPRINTF #undef HAVE_STRTOQ