From: Steven Barth Date: Mon, 30 Sep 2013 08:41:00 +0000 (+0000) Subject: uClibc: fix scoped-IPv6-addresses in getnameinfo X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4a4c2fe74c965eb5ea22ee03b52636fa7ae7778f;p=openwrt%2Fstaging%2Fluka.git uClibc: fix scoped-IPv6-addresses in getnameinfo SVN-Revision: 38261 --- diff --git a/toolchain/uClibc/patches-0.9.33.2/133-inet6-scoped-getnameinfo.patch b/toolchain/uClibc/patches-0.9.33.2/133-inet6-scoped-getnameinfo.patch new file mode 100644 index 0000000000..0bf89e89bb --- /dev/null +++ b/toolchain/uClibc/patches-0.9.33.2/133-inet6-scoped-getnameinfo.patch @@ -0,0 +1,26 @@ +--- a/libc/inet/resolv.c ++++ b/libc/inet/resolv.c +@@ -317,6 +317,7 @@ + #include + #include + #include ++#include + #include + #include "internal/parse_config.h" + +@@ -1861,7 +1862,6 @@ + c = inet_ntop(AF_INET6, + (const void *) &sin6p->sin6_addr, + host, hostlen); +-#if 0 + /* Does scope id need to be supported? */ + uint32_t scopeid; + scopeid = sin6p->sin6_scope_id; +@@ -1898,7 +1898,6 @@ + return EAI_SYSTEM; + memcpy(host + real_hostlen, scopebuf, scopelen + 1); + } +-#endif + } + #endif /* __UCLIBC_HAS_IPV6__ */ + #if defined __UCLIBC_HAS_IPV4__