From f4c96c9bb3df4cfbfd771d2903db955cb0e58732 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 1 Apr 2014 15:02:05 +0000 Subject: main/net-tools: upgrade to git 20140218 and fix musl build --- main/net-tools/musl-fixes.patch | 94 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 main/net-tools/musl-fixes.patch (limited to 'main/net-tools/musl-fixes.patch') diff --git a/main/net-tools/musl-fixes.patch b/main/net-tools/musl-fixes.patch new file mode 100644 index 0000000000..4d6170ca96 --- /dev/null +++ b/main/net-tools/musl-fixes.patch @@ -0,0 +1,94 @@ +diff --git a/lib/inet6_gr.c b/lib/inet6_gr.c +index 72b4a66..2361809 100644 +--- a/lib/inet6_gr.c ++++ b/lib/inet6_gr.c +@@ -23,7 +23,7 @@ + #include + #include + #include +-#ifndef __GLIBC__ ++#ifdef HAVE_IPV6_ROUTE_H + #include /* glibc doesn't have this */ + #endif + #include "version.h" +diff --git a/lib/inet6_sr.c b/lib/inet6_sr.c +index 1ad9510..96dbd5f 100644 +--- a/lib/inet6_sr.c ++++ b/lib/inet6_sr.c +@@ -23,10 +23,10 @@ + #include + #include + #include +-#ifdef __GLIBC__ +-#include +-#else ++#ifdef HAVE_IPV6_ROUTE_H + #include /* glibc does not have this */ ++#else ++#include + #endif + #include "version.h" + #include "net-support.h" +diff --git a/lib/inet_sr.c b/lib/inet_sr.c +index 1a876ae..6a26a76 100644 +--- a/lib/inet_sr.c ++++ b/lib/inet_sr.c +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include + #include "version.h" + #include "net-support.h" + #include "pathnames.h" +diff --git a/lib/util-ank.c b/lib/util-ank.c +index b077f35..4ee59f6 100644 +--- a/lib/util-ank.c ++++ b/lib/util-ank.c +@@ -14,6 +14,7 @@ + * Rani Assaf 980929: resolve addresses + */ + ++#include + #include + #include + #include +diff --git a/mii-tool.c b/mii-tool.c +index 1cfecc2..fbc3b34 100644 +--- a/mii-tool.c ++++ b/mii-tool.c +@@ -46,10 +46,6 @@ + #include + #include + +-#ifndef __GLIBC__ +-#include +-#include +-#endif + #include + #include + #include "version.h" +diff --git a/netstat.c b/netstat.c +index d0c364f..8453f18 100644 +--- a/netstat.c ++++ b/netstat.c +@@ -88,6 +88,7 @@ + #include + #include + #include ++#include + + #include "net-support.h" + #include "pathnames.h" +diff --git a/slattach.c b/slattach.c +index 5c81584..3ccde28 100644 +--- a/slattach.c ++++ b/slattach.c +@@ -44,6 +44,7 @@ + #include + #include + #include ++#include + #include + + #if defined(__GLIBC__) -- cgit v1.2.3