mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
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>
This commit is contained in:
@@ -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 */
|
||||
Reference in New Issue
Block a user