From da60629201ff7a781bbf06107bb5f65afa919533 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Fri, 16 Feb 2018 09:41:22 +0100 Subject: [PATCH] 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. --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 7b57992..a08dda7 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