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.
This commit is contained in:
parent
2343e7a89c
commit
da60629201
1 changed files with 1 additions and 0 deletions
1
configure
vendored
1
configure
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue