diff --git a/src/common.h b/src/common.h
index d5ecc4e..12c91d2 100644
--- a/src/common.h
+++ b/src/common.h
@@ -34,6 +34,7 @@ extern const unsigned char raw_header[RAW_HDR_LEN];
 #ifdef WINDOWS32
 #include "windows.h"
 #else
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <err.h>
 #include <arpa/inet.h>