diff options
author | Siep Kroonenberg <siepo@cybercomm.nl> | 2022-01-17 14:01:39 +0000 |
---|---|---|
committer | Siep Kroonenberg <siepo@cybercomm.nl> | 2022-01-17 14:01:39 +0000 |
commit | 87600a5d237807a8413f2bcf41afa17061e13674 (patch) | |
tree | 898c526f0939d5d444b4efe382642bc573d2f251 /Build/source/texk | |
parent | 5ac5b08dff20ab5c8bf407eebb2731362b16c90d (diff) |
Luasocket: patches for inet
git-svn-id: svn://tug.org/texlive/trunk@61628 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/luasocket/src/inet.c | 2 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/luasocket/src/inet.h | 2 |
2 files changed, 4 insertions, 0 deletions
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 */ |