0
0
mirror of https://github.com/openwrt/packages.git synced 2025-07-04 07:13:07 +00:00
Files
packages/net/libndp/patches/010-gcc14.patch
Rosen Penev 3fc2a136e8 libndp: update to 1.8
Added GCC 14 patch as well.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-05-15 14:34:27 -07:00

12 lines
411 B
Diff

--- a/libndp/libndp.c
+++ b/libndp/libndp.c
@@ -209,7 +209,7 @@ static int mysendto6(int sockfd, void *b
memcpy(&sin6.sin6_addr, addr, sizeof(sin6.sin6_addr));
sin6.sin6_scope_id = ifindex;
resend:
- ret = sendto(sockfd, buf, buflen, flags, &sin6, sizeof(sin6));
+ ret = sendto(sockfd, buf, buflen, flags, (const struct sockaddr *)&sin6, sizeof(sin6));
if (ret == -1) {
switch(errno) {
case EINTR: