diff --git a/src/xpdev/netwrap.h b/src/xpdev/netwrap.h
index f391ca65413759fdf57136f3443f58f26f599d2f..70ddcdc95a5d9e7b413d6a230fa6508389688c59 100644
--- a/src/xpdev/netwrap.h
+++ b/src/xpdev/netwrap.h
@@ -26,6 +26,10 @@
 #include "str_list.h"	/* string list functions and types */
 #include "wrapdll.h"
 
+#if defined(_WIN32)
+	#include <ws2tcpip.h>	// struct in6_addr
+#endif
+
 #define IPv4_LOCALHOST	0x7f000001U	/* 127.0.0.1 */
 
 #if defined(__cplusplus)