The header requires <time.h> for struct timespec.
timepps_h=""
if [ $feat_refclock = "1" ] && [ $feat_pps = "1" ]; then
- if test_code '<sys/timepps.h>' 'inttypes.h sys/timepps.h' '' '' ''; then
+ if test_code '<sys/timepps.h>' 'inttypes.h time.h sys/timepps.h' '' '' ''; then
timepps_h="sys/timepps.h"
add_def HAVE_SYS_TIMEPPS_H
else
- if test_code '<timepps.h>' 'inttypes.h timepps.h' '' '' ''; then
+ if test_code '<timepps.h>' 'inttypes.h time.h timepps.h' '' '' ''; then
timepps_h="timepps.h"
add_def HAVE_TIMEPPS_H
fi
fi
if [ "x$timepps_h" != "x" ] && \
- test_code 'PPSAPI' "inttypes.h string.h $timepps_h" '' '' '
+ test_code 'PPSAPI' "inttypes.h string.h time.h $timepps_h" '' '' '
pps_handle_t h = 0;
pps_info_t i;
struct timespec ts;