1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[network] compilation fix when ipv6 is disabled.

This commit is contained in:
Witold Filipczyk 2022-05-10 15:32:54 +02:00
parent 86f50716fe
commit 76cf90a410

View File

@ -535,16 +535,20 @@ connected(struct socket *socket)
}
static int to_bind;
static int to_bind_ipv6;
static struct sockaddr_in sa_bind;
#ifdef CONFIG_IPV6
static int to_bind_ipv6;
static struct sockaddr_in6 sa6_bind;
#endif
static void
init_bind_address(void)
{
char *bind_address = get_cmd_opt_str("bind-address");
#ifdef CONFIG_IPV6
char *bind_address_ipv6 = get_cmd_opt_str("bind-address-ipv6");
#endif
#ifdef HAVE_INET_PTON
to_bind = (bind_address && *bind_address);