lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

commit b38a8c14572c142532c971471574c8cb2edb3374
parent 71f5ef9b2845f4ff2f7ab074d4c1047946812285
Author: Hauke Mehrtens <hauke@hauke-m.de>
Date:   Sun, 12 Jul 2015 21:06:58 +0200

dhcpcd: fix build with musl

Do not cast to caddr_t, but use a void * instead, the members are all void *.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Diffstat:
Anet/dhcpcd/patches/001-fix-musl.patch | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/net/dhcpcd/patches/001-fix-musl.patch b/net/dhcpcd/patches/001-fix-musl.patch @@ -0,0 +1,13 @@ +--- a/dhcp6.c ++++ b/dhcp6.c +@@ -1047,8 +1047,8 @@ logsend: + + ctx = ifp->ctx->ipv6; + dst.sin6_scope_id = ifp->index; +- ctx->sndhdr.msg_name = (caddr_t)&dst; +- ctx->sndhdr.msg_iov[0].iov_base = (caddr_t)state->send; ++ ctx->sndhdr.msg_name = (void *)&dst; ++ ctx->sndhdr.msg_iov[0].iov_base = (void *)state->send; + ctx->sndhdr.msg_iov[0].iov_len = state->send_len; + + /* Set the outbound interface */