mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
[network] Compilation fix
This commit is contained in:
parent
cdccaeaf21
commit
a753253b10
@ -19,6 +19,9 @@
|
|||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAVE_WS2TCPIP_H
|
||||||
|
#include <ws2tcpip.h> /* socklen_t for MinGW */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Go and say 'thanks' to BSD. */
|
/* Go and say 'thanks' to BSD. */
|
||||||
#ifdef HAVE_NETINET_IN_H
|
#ifdef HAVE_NETINET_IN_H
|
||||||
@ -180,6 +183,7 @@ do_real_lookup(char *name, struct sockaddr_storage **addrs, int *addrno,
|
|||||||
if (is_ip_address(name, strlen(name)) && inet_aton(name, &inp))
|
if (is_ip_address(name, strlen(name)) && inet_aton(name, &inp))
|
||||||
hostent = gethostbyaddr(&inp, sizeof(inp), AF_INET);
|
hostent = gethostbyaddr(&inp, sizeof(inp), AF_INET);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
if (!hostent)
|
if (!hostent)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user