Fix a compile problem on FreeBSD for a missing header.
[asterisk/asterisk.git] / include / asterisk / compat.h
index 139f4f8..afb2901 100644 (file)
@@ -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