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:
parent
86f50716fe
commit
76cf90a410
@ -535,16 +535,20 @@ connected(struct socket *socket)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int to_bind;
|
static int to_bind;
|
||||||
static int to_bind_ipv6;
|
|
||||||
|
|
||||||
static struct sockaddr_in sa_bind;
|
static struct sockaddr_in sa_bind;
|
||||||
|
|
||||||
|
#ifdef CONFIG_IPV6
|
||||||
|
static int to_bind_ipv6;
|
||||||
static struct sockaddr_in6 sa6_bind;
|
static struct sockaddr_in6 sa6_bind;
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
init_bind_address(void)
|
init_bind_address(void)
|
||||||
{
|
{
|
||||||
char *bind_address = get_cmd_opt_str("bind-address");
|
char *bind_address = get_cmd_opt_str("bind-address");
|
||||||
|
#ifdef CONFIG_IPV6
|
||||||
char *bind_address_ipv6 = get_cmd_opt_str("bind-address-ipv6");
|
char *bind_address_ipv6 = get_cmd_opt_str("bind-address-ipv6");
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_INET_PTON
|
#ifdef HAVE_INET_PTON
|
||||||
to_bind = (bind_address && *bind_address);
|
to_bind = (bind_address && *bind_address);
|
||||||
|
Loading…
Reference in New Issue
Block a user