Переглянути джерело

Merge pull request #1566 from hauke/dhcpcd

dhcpcd: fix build with musl
Steven Barth 9 роки тому
джерело
коміт
4d23d296ac
1 змінених файлів з 13 додано та 0 видалено
  1. 13
    0
      net/dhcpcd/patches/001-fix-musl.patch

+ 13
- 0
net/dhcpcd/patches/001-fix-musl.patch Переглянути файл

@@ -0,0 +1,13 @@
1
+--- a/dhcp6.c
2
++++ b/dhcp6.c
3
+@@ -1047,8 +1047,8 @@ logsend:
4
+ 
5
+ 	ctx = ifp->ctx->ipv6;
6
+ 	dst.sin6_scope_id = ifp->index;
7
+-	ctx->sndhdr.msg_name = (caddr_t)&dst;
8
+-	ctx->sndhdr.msg_iov[0].iov_base = (caddr_t)state->send;
9
++	ctx->sndhdr.msg_name = (void *)&dst;
10
++	ctx->sndhdr.msg_iov[0].iov_base = (void *)state->send;
11
+ 	ctx->sndhdr.msg_iov[0].iov_len = state->send_len;
12
+ 
13
+ 	/* Set the outbound interface */