From: Miroslav Lichvar Date: Thu, 30 Aug 2018 09:43:53 +0000 (+0200) Subject: configure: fix detection of timepps.h on NetBSD X-Git-Tag: 3.4-pre1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09dfca49ec25000e93a83559b8b8800ca31451b9;p=thirdparty%2Fchrony.git configure: fix detection of timepps.h on NetBSD The header requires for struct timespec. --- diff --git a/configure b/configure index fbb5d0ab..33aacdfa 100755 --- a/configure +++ b/configure @@ -707,11 +707,11 @@ fi timepps_h="" if [ $feat_refclock = "1" ] && [ $feat_pps = "1" ]; then - if test_code '' 'inttypes.h sys/timepps.h' '' '' ''; then + if test_code '' 'inttypes.h time.h sys/timepps.h' '' '' ''; then timepps_h="sys/timepps.h" add_def HAVE_SYS_TIMEPPS_H else - if test_code '' 'inttypes.h timepps.h' '' '' ''; then + if test_code '' 'inttypes.h time.h timepps.h' '' '' ''; then timepps_h="timepps.h" add_def HAVE_TIMEPPS_H fi @@ -719,7 +719,7 @@ if [ $feat_refclock = "1" ] && [ $feat_pps = "1" ]; then 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;