]> git.pld-linux.org Git - packages/ntp.git/blob - ntp-4.2.6p1-cmsgalign.patch
ntpd requires libgcc_s.so.1
[packages/ntp.git] / ntp-4.2.6p1-cmsgalign.patch
1 diff -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;
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.064329 seconds and 3 git commands to generate.