[PATCH] fix build on uClibc without IPv6 support
Disable IPv6 support code when building with uClibc configured without IPv6
[Gustavo: update for iproute2 3.10.0]
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
diff -Nura iproute2-3.10.0.orig/ip/ip6tunnel.c iproute2-3.10.0/ip/ip6tunnel.c
--- iproute2-3.10.0.orig/ip/ip6tunnel.c 2013-08-14 09:17:56.538089916 -0300
+++ iproute2-3.10.0/ip/ip6tunnel.c 2013-08-14 09:18:02.952298534 -0300
* Masahide NAKAMURA @USAGI
+#if defined(__UCLIBC__) && !defined (__UCLIBC_HAS_IPV6__)
fprintf(stderr, "Command \"%s\" is unknown, try \"ip -f inet6 tunnel help\".\n", *argv);
diff -Nura iproute2-3.10.0.orig/ip/ipprefix.c iproute2-3.10.0/ip/ipprefix.c
--- iproute2-3.10.0.orig/ip/ipprefix.c 2013-08-14 09:17:56.539089949 -0300
+++ iproute2-3.10.0/ip/ipprefix.c 2013-08-14 09:19:29.065099291 -0300
* Masahide NAKAMURA @USAGI
+#if defined(__UCLIBC__) && !defined (__UCLIBC_HAS_IPV6__)
#include <netinet/icmp6.h>
fprintf(stderr, "incorrect protocol family: %d\n", prefix->prefix_family);
+#ifdef ND_OPT_PREFIX_INFORMATION
if (prefix->prefix_type != ND_OPT_PREFIX_INFORMATION) {
fprintf(stderr, "wrong ND type %d\n", prefix->prefix_type);
parse_rtattr(tb, RTA_MAX, RTM_RTA(prefix), len);