diff --git a/xtrn/sdk/xsdkinet.h b/xtrn/sdk/xsdkinet.h
index b89bb28be6827665db8ef1456296f9d3c15389d0..5c2f75ab97a336c38d7a290ed5eca02619cdf9c9 100644
--- a/xtrn/sdk/xsdkinet.h
+++ b/xtrn/sdk/xsdkinet.h
@@ -52,6 +52,10 @@
 
 #elif defined __unix__	/* Unix-variant */
 
+#ifdef __FreeBSD__
+#include <sys/types.h>	/* u_intXX_t */
+#endif
+
 #include <netdb.h>		/* gethostbyname */
 #include <netinet/in.h>	/* IPPROTO_IP */
 #include <sys/socket.h>	/* socket/bind/etc. */