From: Felix Fietkau Date: Sun, 29 Mar 2015 04:30:12 +0000 (+0000) Subject: iputils: fix musl compile errors X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4a7f1bb54c782ce426bfc49528dcc87b4f3d597f;p=openwrt%2Fstaging%2Fyousong.git iputils: fix musl compile errors Signed-off-by: Felix Fietkau SVN-Revision: 45111 --- diff --git a/package/network/utils/iputils/patches/020-include_fixes.patch b/package/network/utils/iputils/patches/020-include_fixes.patch index 0c977498b1..e982dabc37 100644 --- a/package/network/utils/iputils/patches/020-include_fixes.patch +++ b/package/network/utils/iputils/patches/020-include_fixes.patch @@ -8,6 +8,15 @@ #include #include #include +@@ -11,7 +12,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include @@ -24,6 +25,10 @@ #include "SNAPSHOT.h" @@ -30,3 +39,33 @@ #include #include #include +--- a/tracepath.c ++++ b/tracepath.c +@@ -13,6 +13,7 @@ + #include + #include + #include ++#include + #include + #include + #include +--- a/ping.c ++++ b/ping.c +@@ -661,8 +661,15 @@ int send_probe() + + do { + static struct iovec iov = {outpack, 0}; +- static struct msghdr m = { &whereto, sizeof(whereto), +- &iov, 1, &cmsg, 0, 0 }; ++ static struct msghdr m = { ++ .msg_name = &whereto, ++ .msg_namelen = sizeof(whereto), ++ .msg_iov = &iov, ++ .msg_iovlen = 1, ++ .msg_control = &cmsg, ++ .msg_controllen = 0, ++ .msg_flags = 0 ++ }; + m.msg_controllen = cmsg_len; + iov.iov_len = cc; +