From: Miroslav Lichvar Date: Fri, 16 Feb 2018 08:41:22 +0000 (+0100) Subject: configure: improve check for timestamping options X-Git-Tag: 3.3-pre1~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da60629201ff7a781bbf06107bb5f65afa919533;p=thirdparty%2Fchrony.git configure: improve check for timestamping options 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. --- diff --git a/configure b/configure index 7b57992d..a08dda71 100755 --- 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