aboutsummaryrefslogtreecommitdiffstats
path: root/main/dhcpcd/fix-caddr_t.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/dhcpcd/fix-caddr_t.patch')
-rw-r--r--main/dhcpcd/fix-caddr_t.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/dhcpcd/fix-caddr_t.patch b/main/dhcpcd/fix-caddr_t.patch
new file mode 100644
index 0000000000..2fa00a9bd6
--- /dev/null
+++ b/main/dhcpcd/fix-caddr_t.patch
@@ -0,0 +1,13 @@
+--- ./dhcp6.c.orig
++++ ./dhcp6.c
+@@ -835,8 +835,8 @@
+
+ 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 */