Missing AF_INET6 and related definitions are located in Windows Sockets 2
TCP/IP header.


-- 
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prosody-dev/eaea3df507e226125eba.1677275997%40EI08_MatisseX.
# HG changeset patch
# User Vitaly Orekhov
# Date 1677275688 -10800
#      Sat Feb 25 00:54:48 2023 +0300
# Node ID eaea3df507e226125eba063656db2cbcdc9c7618
# Parent  b5a8b462184b898d7a216639dac32fa76813468a
util.net: Use Winsock2 if compiled for Windows

Missing AF_INET6 and related definitions are located in Windows Sockets 2
TCP/IP header.

diff -r b5a8b462184b -r eaea3df507e2 util-src/net.c
--- a/util-src/net.c	Fri Feb 24 01:34:26 2023 +0300
+++ b/util-src/net.c	Sat Feb 25 00:54:48 2023 +0300
@@ -25,6 +25,8 @@
 #include <ifaddrs.h>
 #include <arpa/inet.h>
 #include <netinet/in.h>
+#else
+#include <WS2tcpip.h>
 #endif
 
 #include <lua.h>

Reply via email to