dhcpcd: fix build with musl 1566/head
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 12 Jul 2015 19:06:58 +0000 (21:06 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 12 Jul 2015 19:08:45 +0000 (21:08 +0200)
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>
net/dhcpcd/patches/001-fix-musl.patch [new file with mode: 0644]

diff --git a/net/dhcpcd/patches/001-fix-musl.patch b/net/dhcpcd/patches/001-fix-musl.patch
new file mode 100644 (file)
index 0000000..5751a4c
--- /dev/null
@@ -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 */