aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/compat.h
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-23 12:47:50 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-23 12:47:50 +0000
commit6bbf8b59252e567e7343bb66a5f160af488980a4 (patch)
treeb43f319679b8ec51501ef238655ad67eae2b6ec6 /include/asterisk/compat.h
parent2082e1e4ef229f7bdb64d4e65ab9d92082466257 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@14320 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/compat.h')
-rw-r--r--include/asterisk/compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h
index 139f4f81b..afb290169 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 <sys/types.h>
+#endif
+
#ifdef SOLARIS
#undef HAVE_VASPRINTF
#undef HAVE_STRTOQ