]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
configure: improve check for timestamping options
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 16 Feb 2018 08:41:22 +0000 (09:41 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 16 Feb 2018 10:09:54 +0000 (11:09 +0100)
The socket.h header provided by musl doesn't seem to include the kernel
headers and is missing SCM_TIMESTAMPING_PKTINFO, which causes the
Linux-specific code in chrony to fail to build.

configure

index 7b57992d7c9ee42336d17474ba5145f2a0e7b604..a08dda710bfba21d5083d839819386d310463684 100755 (executable)
--- a/configure
+++ b/configure
@@ -700,6 +700,7 @@ then
     struct scm_ts_pktinfo pktinfo;
     pktinfo.if_index = pktinfo.pkt_length = 0;
     return pktinfo.if_index + pktinfo.pkt_length + HWTSTAMP_FILTER_NTP_ALL +
+           SCM_TIMESTAMPING_PKTINFO +
            SOF_TIMESTAMPING_OPT_PKTINFO + SOF_TIMESTAMPING_OPT_TX_SWHW;'; then
     add_def HAVE_LINUX_TIMESTAMPING_RXFILTER_NTP 1
     add_def HAVE_LINUX_TIMESTAMPING_OPT_PKTINFO 1