]> git.pld-linux.org Git - packages/wget.git/blame - wget-back-to-ipv4.patch
- updated to rc1; now works on non-ipv6 ready hosts
[packages/wget.git] / wget-back-to-ipv4.patch
CommitLineData
df37a0d8
AM
1diff -urN wget-1.9-rc1.org/src/main.c wget-1.9-rc1/src/main.c
2--- wget-1.9-rc1.org/src/main.c 2003-10-17 09:40:01.000000000 +0200
3+++ wget-1.9-rc1/src/main.c 2003-10-17 09:43:09.000000000 +0200
4@@ -380,6 +380,15 @@
5
6 append_to_log = 0;
7
8+#ifdef ENABLE_IPV6
9+ {
10+ int s = socket(AF_INET6, SOCK_STREAM, 0);
11+ if (s < 0 && (errno == EAFNOSUPPORT || errno == EINVAL))
12+ ip_default_family = AF_INET;
13+ close(s);
14+ }
15+#endif
16+
17 /* Construct the name of the executable, without the directory part. */
18 exec_name = strrchr (argv[0], PATH_SEPARATOR);
19 if (!exec_name)
This page took 0.03942 seconds and 4 git commands to generate.