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