From 4791b0526b1dbb6d2b28532f4897c922f5cc9f65 Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Mon, 16 May 2022 20:44:19 -0700
Subject: [PATCH] Need ws2tcpip.h for struct ip6_addr definition on Windows

---
 src/xpdev/netwrap.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/xpdev/netwrap.h b/src/xpdev/netwrap.h
index f391ca6541..70ddcdc95a 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)
-- 
GitLab