aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc/patches/200-ipv6_hosts_resolve.patch
blob: 38f6d3eb34072e38cca549a77b238a215407b842 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -pur uClibc.old/libc/inet/resolv.c uClibc.dev/libc/inet/resolv.c
--- uClibc.old/libc/inet/resolv.c	2005-08-18 00:49:41.000000000 +0200
+++ uClibc.dev/libc/inet/resolv.c	2007-01-27 15:33:39.689171960 +0100
@@ -2083,7 +2083,7 @@ int gethostbyname2_r(const char *name, i
 		int old_errno = errno;	/* Save the old errno and reset errno */
 		__set_errno(0);			/* to check for missing /etc/hosts. */
 
-		if ((i=__get_hosts_byname_r(name, AF_INET, result_buf,
+		if ((i=__get_hosts_byname_r(name, family, result_buf,
 				buf, buflen, result, h_errnop))==0)
 			return i;
 		switch (*h_errnop) {