aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-09-30 08:41:00 +0000
committerSteven Barth <steven@midlink.org>2013-09-30 08:41:00 +0000
commit3a948c0b93fd13ed24c1264315a2e67c035a544e (patch)
tree4743fa8489e014d0b7cf8c90abf5ce6d2a9128b5
parent8eabf4789e40f7c938adbd5958ee187888f22f93 (diff)
downloadupstream-3a948c0b93fd13ed24c1264315a2e67c035a544e.tar.gz
upstream-3a948c0b93fd13ed24c1264315a2e67c035a544e.tar.bz2
upstream-3a948c0b93fd13ed24c1264315a2e67c035a544e.zip
uClibc: fix scoped-IPv6-addresses in getnameinfo
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38261 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--toolchain/uClibc/patches-0.9.33.2/133-inet6-scoped-getnameinfo.patch26
1 files changed, 26 insertions, 0 deletions
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 <sys/utsname.h>
+ #include <sys/un.h>
+ #include <sys/stat.h>
++#include <net/if.h>
+ #include <bits/uClibc_mutex.h>
+ #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__