1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Don't reference opt.ipv4_only and opt.ipv6_only if IPv6 is disabled.

This commit is contained in:
hniksic 2003-11-19 05:25:20 -08:00
parent 3792aa7058
commit bbcdd71484
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-11-19 Hrvoje Niksic <hniksic@xemacs.org>
* main.c (main): Don't reference opt.ipv4_only and opt.ipv6_only
if IPv6 is disabled.
2003-11-19 Hrvoje Niksic <hniksic@xemacs.org>
* connect.c (socket_has_inet6): Only compile it if IPv6 is enabled

View File

@ -807,12 +807,14 @@ Can't timestamp and not clobber old files at the same time.\n"));
print_usage ();
exit (1);
}
#ifdef ENABLE_IPV6
if (opt.ipv4_only && opt.ipv6_only)
{
printf (_("Cannot specify both --inet4-only and --inet6-only.\n"));
print_usage ();
exit (1);
}
#endif
nurl = argc - optind;
if (!nurl && !opt.input_filename)