]> git.pld-linux.org Git - packages/wget.git/blame - wget-back-to-ipv4.patch
- rel 8 for th
[packages/wget.git] / wget-back-to-ipv4.patch
CommitLineData
499ef906
ER
1--- wget-1.9.1.orig/src/main.c 2004-12-28 01:42:49.000000000 +0200
2+++ wget-1.9.1/src/main.c 2004-12-28 01:42:01.000000000 +0200
3@@ -380,6 +380,17 @@
df37a0d8
AM
4
5 append_to_log = 0;
6
7+#ifdef ENABLE_IPV6
8+ {
9+ int s = socket(AF_INET6, SOCK_STREAM, 0);
499ef906 10+ if (s < 0 && (errno == EAFNOSUPPORT || errno == EINVAL)) {
df37a0d8 11+ ip_default_family = AF_INET;
499ef906
ER
12+ } else {
13+ close(s);
14+ }
df37a0d8
AM
15+ }
16+#endif
17+
18 /* Construct the name of the executable, without the directory part. */
19 exec_name = strrchr (argv[0], PATH_SEPARATOR);
20 if (!exec_name)
This page took 0.093764 seconds and 4 git commands to generate.