diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-29 04:30:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-29 04:30:12 +0000 |
commit | df4ff466d61e2ab39d9fb43a84c038cf6d29650a (patch) | |
tree | 4aceed45658bb7bb3b73a12c2a47ccf3ece0bce9 /package/network/utils | |
parent | 007bfd1d7d43f5c3c37fae9647669ceaa25b6c7d (diff) | |
download | upstream-df4ff466d61e2ab39d9fb43a84c038cf6d29650a.tar.gz upstream-df4ff466d61e2ab39d9fb43a84c038cf6d29650a.tar.bz2 upstream-df4ff466d61e2ab39d9fb43a84c038cf6d29650a.zip |
iputils: fix musl compile errors
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45111 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/utils')
-rw-r--r-- | package/network/utils/iputils/patches/020-include_fixes.patch | 39 |
1 files changed, 39 insertions, 0 deletions
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 <sys/param.h> #include <sys/socket.h> #include <linux/sockios.h> +@@ -11,7 +12,7 @@ + #include <sys/ioctl.h> + #include <net/if.h> + #include <sys/uio.h> +-#include <sys/poll.h> ++#include <poll.h> + #include <ctype.h> + #include <errno.h> + #include <string.h> @@ -24,6 +25,10 @@ #include "SNAPSHOT.h" @@ -30,3 +39,33 @@ #include <fcntl.h> #include <netdb.h> #include <arpa/inet.h> +--- a/tracepath.c ++++ b/tracepath.c +@@ -13,6 +13,7 @@ + #include <stdlib.h> + #include <unistd.h> + #include <sys/socket.h> ++#include <sys/time.h> + #include <linux/types.h> + #include <linux/errqueue.h> + #include <errno.h> +--- 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; + |