--- a/src/core/net/net_params.c
+++ b/src/core/net/net_params.c
@@ -23,6 +23,7 @@
  *  2010-01-xx  created (bogdan)
  */
 
+#include <sys/types.h>
 #include <netinet/in.h>
 #include <netinet/in_systm.h>
 #include <netinet/ip.h>