summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/luasocket/src/wsocket.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/luasocket/src/wsocket.h')
-rw-r--r--Build/source/texk/web2c/luatexdir/luasocket/src/wsocket.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/wsocket.h b/Build/source/texk/web2c/luatexdir/luasocket/src/wsocket.h
index 624dd79bf17..398664026fc 100644
--- a/Build/source/texk/web2c/luatexdir/luasocket/src/wsocket.h
+++ b/Build/source/texk/web2c/luatexdir/luasocket/src/wsocket.h
@@ -8,9 +8,6 @@
/*=========================================================================*\
* WinSock include files
\*=========================================================================*/
-#if defined(__MINGW32__) && (!defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0501))
-#define _WIN32_WINNT 0x0501
-#endif
#include <winsock2.h>
#include <ws2tcpip.h>
@@ -19,10 +16,18 @@ typedef SOCKADDR_STORAGE t_sockaddr_storage;
typedef SOCKET t_socket;
typedef t_socket *p_socket;
+#ifndef IPV6_V6ONLY
+#define IPV6_V6ONLY 27
+#endif
+
#define SOCKET_INVALID (INVALID_SOCKET)
#ifndef SO_REUSEPORT
#define SO_REUSEPORT SO_REUSEADDR
#endif
+#ifndef AI_NUMERICSERV
+#define AI_NUMERICSERV (0)
+#endif
+
#endif /* WSOCKET_H */