mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:05:06 -05:00
refclock_phc: use sys_linux code for reading PHC
This drops support for non-ioctl reading of PHC.
This commit is contained in:
2
configure
vendored
2
configure
vendored
@@ -732,7 +732,7 @@ fi
|
||||
if [ $feat_refclock = "1" ] && [ $feat_phc = "1" ] && [ $try_phc = "1" ] && \
|
||||
grep '#define HAVE_CLOCK_GETTIME' config.h > /dev/null && \
|
||||
test_code '<linux/ptp_clock.h>' 'sys/ioctl.h linux/ptp_clock.h' '' '' \
|
||||
'ioctl(1, PTP_CLOCK_GETCAPS, 0);'
|
||||
'ioctl(1, PTP_CLOCK_GETCAPS + PTP_SYS_OFFSET, 0);'
|
||||
then
|
||||
add_def FEAT_PHC
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user