--- auth.c.orig
+++ auth.c
@@ -21,6 +21,9 @@
  * 				- introduced AKAv1-MD5
  */
 
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#endif
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
--- sipp.hpp.orig
+++ sipp.hpp
@@ -268,7 +268,7 @@
 void pollset_remove(int idx);
 int pollset_add(call * p_call, int socket);
 
-#if defined (__hpux) || defined (__alpha)
+#if defined (__hpux) || defined (__alpha) && !defined (__FreeBSD__)
 #define sipp_socklen_t  int
 #else
 #define sipp_socklen_t  socklen_t
