From: Harlan Stenn Date: Sun, 16 Dec 2007 09:51:58 +0000 (-0500) Subject: [Bug 979] Provide ntptimeval if it is not otherwise present X-Git-Tag: NTP_4_2_5P107~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2f1b7001f3156620d3f15a77152776c807982fd;p=thirdparty%2Fntp.git [Bug 979] Provide ntptimeval if it is not otherwise present bk: 4764f53ePdBshs8OdMmHG7u4UeZdhA --- diff --git a/ChangeLog b/ChangeLog index 913ca2a6b..7a5fb663c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 979] Provide ntptimeval if it is not otherwise present. * [Bug 634] Re-instantiate syslog() and logfiles after the daemon fork. * [Bug 952] Use md5 code with a friendlier license. * [Bug 977] Fix mismatching #ifdefs for builds without IPv6. diff --git a/include/ntp_syscall.h b/include/ntp_syscall.h index 6bf4a1d11..c255cee46 100644 --- a/include/ntp_syscall.h +++ b/include/ntp_syscall.h @@ -24,6 +24,15 @@ extern int __adjtimex (struct timex *); # define ntp_adjtime(t) __adjtimex((t)) +#ifndef HAVE_STRUCT_NTPTIMEVAL +struct ntptimeval +{ + struct timeval time; /* current time (ro) */ + long int maxerror; /* maximum error (us) (ro) */ + long int esterror; /* estimated error (us) (ro) */ +}; +#endif + static inline int ntp_gettime( struct ntptimeval *ntv