mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Don't compile socket_has_inet6 if IPv6 is disabled.
This commit is contained in:
parent
581f9539a3
commit
3792aa7058
@ -1,3 +1,8 @@
|
|||||||
|
2003-11-19 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
|
* connect.c (socket_has_inet6): Only compile it if IPv6 is enabled
|
||||||
|
and AI_ADDRCONFIG is missing.
|
||||||
|
|
||||||
2003-11-18 Hrvoje Niksic <hniksic@xemacs.org>
|
2003-11-18 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* gen_sslfunc.c (ssl_init_prng): Warn the user when using a weak
|
* gen_sslfunc.c (ssl_init_prng): Warn the user when using a weak
|
||||||
|
@ -588,6 +588,9 @@ retryable_socket_connect_error (int err)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ENABLE_IPV6
|
||||||
|
# ifndef HAVE_GETADDRINFO_AI_ADDRCONFIG
|
||||||
|
|
||||||
/* Return non-zero if the INET6 socket family is supported on the
|
/* Return non-zero if the INET6 socket family is supported on the
|
||||||
system.
|
system.
|
||||||
|
|
||||||
@ -613,6 +616,9 @@ socket_has_inet6 (void)
|
|||||||
return supported;
|
return supported;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# endif/* not HAVE_GETADDRINFO_AI_ADDRCONFIG */
|
||||||
|
#endif /* ENABLE_IPV6 */
|
||||||
|
|
||||||
/* Wait for a single descriptor to become available, timing out after
|
/* Wait for a single descriptor to become available, timing out after
|
||||||
MAXTIME seconds. Returns 1 if FD is available, 0 for timeout and
|
MAXTIME seconds. Returns 1 if FD is available, 0 for timeout and
|
||||||
-1 for error. The argument WAIT_FOR can be a combination of
|
-1 for error. The argument WAIT_FOR can be a combination of
|
||||||
|
Loading…
x
Reference in New Issue
Block a user