mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 21:45:07 -05:00
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:
1
configure
vendored
1
configure
vendored
@@ -700,6 +700,7 @@ then
|
|||||||
struct scm_ts_pktinfo pktinfo;
|
struct scm_ts_pktinfo pktinfo;
|
||||||
pktinfo.if_index = pktinfo.pkt_length = 0;
|
pktinfo.if_index = pktinfo.pkt_length = 0;
|
||||||
return pktinfo.if_index + pktinfo.pkt_length + HWTSTAMP_FILTER_NTP_ALL +
|
return pktinfo.if_index + pktinfo.pkt_length + HWTSTAMP_FILTER_NTP_ALL +
|
||||||
|
SCM_TIMESTAMPING_PKTINFO +
|
||||||
SOF_TIMESTAMPING_OPT_PKTINFO + SOF_TIMESTAMPING_OPT_TX_SWHW;'; then
|
SOF_TIMESTAMPING_OPT_PKTINFO + SOF_TIMESTAMPING_OPT_TX_SWHW;'; then
|
||||||
add_def HAVE_LINUX_TIMESTAMPING_RXFILTER_NTP 1
|
add_def HAVE_LINUX_TIMESTAMPING_RXFILTER_NTP 1
|
||||||
add_def HAVE_LINUX_TIMESTAMPING_OPT_PKTINFO 1
|
add_def HAVE_LINUX_TIMESTAMPING_OPT_PKTINFO 1
|
||||||
|
|||||||
Reference in New Issue
Block a user