[asterisk-commits] trunk r14320 - /trunk/include/asterisk/compat.h

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Mar 23 05:47:52 MST 2006


Author: rizzo
Date: Thu Mar 23 06:47:50 2006
New Revision: 14320

URL: http://svn.digium.com/view/asterisk?rev=14320&view=rev
Log:
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.


Modified:
    trunk/include/asterisk/compat.h

Modified: trunk/include/asterisk/compat.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/compat.h?rev=14320&r1=14319&r2=14320&view=diff
==============================================================================
--- trunk/include/asterisk/compat.h (original)
+++ trunk/include/asterisk/compat.h Thu Mar 23 06:47:50 2006
@@ -84,6 +84,10 @@
 #define HAVE_STRNLEN
 #endif
 
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#endif
+
 #ifdef SOLARIS
 #undef HAVE_VASPRINTF
 #undef HAVE_STRTOQ



More information about the asterisk-commits mailing list