refclock_phc: use sys_linux code for reading PHC

This drops support for non-ioctl reading of PHC.
This commit is contained in:
Miroslav Lichvar
2017-01-19 15:54:01 +01:00
parent b70f0b674f
commit 9df4d36157
4 changed files with 35 additions and 107 deletions

2
configure vendored
View File

@@ -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