--- inetaddress/inetaddress.orig	2015-01-25 09:51:12 UTC
+++ inetaddress/inetaddress
@@ -1,6 +1,11 @@
 #ifndef INCLUDED_BOBCAT_INETADDRESS_
 #define INCLUDED_BOBCAT_INETADDRESS_
 
+#if defined(__FreeBSD__) || defined(__DragonFly__)
+#include <sys/types.h>
+#include <sys/socket.h>
+#endif
+
 #include <netinet/in.h>
 #include <string>
 
