]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 979] Provide ntptimeval if it is not otherwise present
authorHarlan Stenn <stenn@ntp.org>
Sun, 16 Dec 2007 09:51:58 +0000 (04:51 -0500)
committerHarlan Stenn <stenn@ntp.org>
Sun, 16 Dec 2007 09:51:58 +0000 (04:51 -0500)
bk: 4764f53ePdBshs8OdMmHG7u4UeZdhA

ChangeLog
include/ntp_syscall.h

index 913ca2a6bac6a75bfef6d62d8dce547f6e03ca9f..7a5fb663cf4be7e8a79a33c6f88275c148b6f489 100644 (file)
--- 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.
index 6bf4a1d11698ee99c13212bce97a8f503e570e92..c255cee46b5fc60b87dec6fac5219a56e72e3eeb 100644 (file)
@@ -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