in_addr is defined in <Winsock2.h>, include before <ws2tcpip.h>
diff --git a/src/netops.c b/src/netops.c
index 8a60299..fceb4fb 100644
--- a/src/netops.c
+++ b/src/netops.c
@@ -13,6 +13,7 @@
# include <netinet/in.h>
# include <arpa/inet.h>
#else
+# include <winsock2.h>
# include <ws2tcpip.h>
# ifdef _MSC_VER
# pragma comment(lib, "ws2_32")