From 87600a5d237807a8413f2bcf41afa17061e13674 Mon Sep 17 00:00:00 2001 From: Siep Kroonenberg Date: Mon, 17 Jan 2022 14:01:39 +0000 Subject: Luasocket: patches for inet git-svn-id: svn://tug.org/texlive/trunk@61628 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/luatexdir/luasocket/src/inet.c | 2 ++ Build/source/texk/web2c/luatexdir/luasocket/src/inet.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'Build/source/texk') diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/inet.c b/Build/source/texk/web2c/luatexdir/luasocket/src/inet.c index f4c84044eb7..2d8a092a1e0 100644 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/inet.c +++ b/Build/source/texk/web2c/luatexdir/luasocket/src/inet.c @@ -519,6 +519,7 @@ int inet_aton(const char *cp, struct in_addr *inp) #endif #ifdef LUASOCKET_INET_PTON +#if (_WIN32_WINNT < 0x0600) int inet_pton(int af, const char *src, void *dst) { struct addrinfo hints, *res; @@ -541,3 +542,4 @@ int inet_pton(int af, const char *src, void *dst) } #endif +#endif diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/inet.h b/Build/source/texk/web2c/luatexdir/luasocket/src/inet.h index 928c7eb407e..4affec268c2 100644 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/inet.h +++ b/Build/source/texk/web2c/luatexdir/luasocket/src/inet.h @@ -47,8 +47,10 @@ int inet_aton(const char *cp, struct in_addr *inp); #endif #ifdef LUASOCKET_INET_PTON +#if (_WIN32_WINNT < 0x0600) const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt); int inet_pton(int af, const char *src, void *dst); #endif +#endif #endif /* INET_H */ -- cgit v1.2.3