]> git.pld-linux.org Git - packages/ntp.git/blame - ntp-4.2.6p1-cmsgalign.patch
ntpd requires libgcc_s.so.1
[packages/ntp.git] / ntp-4.2.6p1-cmsgalign.patch
CommitLineData
a8809dbd
ER
1diff -up ntp-4.2.6p1/ntpd/ntp_io.c.cmsgalign ntp-4.2.6p1/ntpd/ntp_io.c
2--- ntp-4.2.6p1/ntpd/ntp_io.c.cmsgalign 2010-03-04 18:28:53.000000000 +0100
3+++ ntp-4.2.6p1/ntpd/ntp_io.c 2010-03-04 18:30:34.000000000 +0100
4@@ -3194,8 +3194,8 @@ read_network_packet(
5 msghdr.msg_namelen = fromlen;
6fca7355
ER
6 msghdr.msg_iov = &iovec;
7 msghdr.msg_iovlen = 1;
8- msghdr.msg_control = (void *)&control;
9- msghdr.msg_controllen = sizeof(control);
10+ msghdr.msg_control = (void *)((long)(control + 7) & -8); /* align to 8 bytes */
11+ msghdr.msg_controllen = sizeof(control) - 8;
12 msghdr.msg_flags = 0;
13 rb->recv_length = recvmsg(fd, &msghdr, 0);
14 #endif
This page took 0.124094 seconds and 4 git commands to generate.