]> sjero.net Git - wget/commitdiff
[svn] Don't reference opt.ipv4_only and opt.ipv6_only if IPv6 is disabled.
authorhniksic <devnull@localhost>
Wed, 19 Nov 2003 13:25:20 +0000 (05:25 -0800)
committerhniksic <devnull@localhost>
Wed, 19 Nov 2003 13:25:20 +0000 (05:25 -0800)
src/ChangeLog
src/main.c

index b281c307ed6f7366529e52155cc3677baeff3a47..9a468765ec97a5d3f186b1a7060733ceeac45f17 100644 (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
index 4d4af67042d752449793e5e951d98bc6c56a7d8b..f76380bff98576a9e9d55f3bac38d1486ae09b1f 100644 (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)