mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
windows: ipv6 compile fix
Via turtiain https://github.com/warmcat/libwebsockets/issues/1880
This commit is contained in:
parent
a9caff5b37
commit
a147fb81dc
1 changed files with 2 additions and 1 deletions
|
@ -142,6 +142,7 @@ int
|
|||
lws_interface_to_sa(int ipv6,
|
||||
const char *ifname, struct sockaddr_in *addr, size_t addrlen)
|
||||
{
|
||||
long long address;
|
||||
#ifdef LWS_WITH_IPV6
|
||||
struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)addr;
|
||||
|
||||
|
@ -152,7 +153,7 @@ lws_interface_to_sa(int ipv6,
|
|||
}
|
||||
#endif
|
||||
|
||||
long long address = inet_addr(ifname);
|
||||
address = inet_addr(ifname);
|
||||
|
||||
if (address == INADDR_NONE) {
|
||||
struct hostent *entry = gethostbyname(ifname);
|
||||
|
|
Loading…
Add table
Reference in a new issue