diff options
Diffstat (limited to 'include/ntp_syscall.h')
| -rw-r--r-- | include/ntp_syscall.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/ntp_syscall.h b/include/ntp_syscall.h index 521e753f6791..c255cee46b5f 100644 --- a/include/ntp_syscall.h +++ b/include/ntp_syscall.h @@ -20,10 +20,19 @@ # define ntp_gettime(t) syscall(SYS_ntp_gettime, (t)) #else /* !NTP_SYSCALLS_STD */ # ifdef HAVE___ADJTIMEX -extern int __adjtimex P((struct timex *)); +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 |
