added an align patch
This commit is contained in:
parent
5daee29a03
commit
9a00bf1385
24
avahi-0.6.11-align.patch
Normal file
24
avahi-0.6.11-align.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
--- avahi-0.6.11.old/avahi-core/socket.c 2006-06-22 11:16:30.000000000 +0100
|
||||||
|
+++ avahi-0.6.11/avahi-core/socket.c 2006-09-18 10:07:23.000000000 +0100
|
||||||
|
@@ -475,10 +475,10 @@ int avahi_send_dns_packet_ipv4(
|
||||||
|
struct iovec io;
|
||||||
|
#ifdef IP_PKTINFO
|
||||||
|
struct cmsghdr *cmsg;
|
||||||
|
- uint8_t cmsg_data[CMSG_SPACE(sizeof(struct in_pktinfo))];
|
||||||
|
+ size_t cmsg_data[( CMSG_SPACE(sizeof(struct in_pktinfo)) / sizeof(size_t)) + 1];
|
||||||
|
#elif defined(IP_SENDSRCADDR)
|
||||||
|
struct cmsghdr *cmsg;
|
||||||
|
- uint8_t cmsg_data[CMSG_SPACE(sizeof(struct in_addr))];
|
||||||
|
+ size_t cmsg_data[( CMSG_SPACE(sizeof(struct in_addr)) / sizeof(size_t)) + 1];
|
||||||
|
#endif
|
||||||
|
|
||||||
|
assert(fd >= 0);
|
||||||
|
@@ -565,7 +565,7 @@ int avahi_send_dns_packet_ipv6(int fd, A
|
||||||
|
struct msghdr msg;
|
||||||
|
struct iovec io;
|
||||||
|
struct cmsghdr *cmsg;
|
||||||
|
- uint8_t cmsg_data[CMSG_SPACE(sizeof(struct in6_pktinfo))];
|
||||||
|
+ size_t cmsg_data[(CMSG_SPACE(sizeof(struct in6_pktinfo))/sizeof(size_t)) + 1];
|
||||||
|
|
||||||
|
assert(fd >= 0);
|
||||||
|
assert(p);
|
Loading…
Reference in New Issue
Block a user