Remove building with NOCRYPTO option
[minix3.git] / lib / libc / compat / sys / compat___ntp_gettime30.c
blob8511ec4014564c80564c2385b7e72818e3219f53
1 /* $NetBSD: compat___ntp_gettime30.c,v 1.2 2009/01/11 02:46:26 christos Exp $ */
3 #include <sys/cdefs.h>
4 #if defined(LIBC_SCCS) && !defined(lint)
5 __RCSID("$NetBSD: compat___ntp_gettime30.c,v 1.2 2009/01/11 02:46:26 christos Exp $");
6 #endif /* LIBC_SCCS and not lint */
8 #define __LIBC12_SOURCE__
10 #include <sys/time.h>
11 #include <sys/timex.h>
12 #include <compat/sys/timex.h>
14 __warn_references(__ntp_gettime30,
15 "warning: reference to compatibility __ntp_gettime30(); include <sys/timex.h> for correct reference")
17 int
18 __ntp_gettime30(struct ntptimeval50 *ontvp)
20 struct ntptimeval ntv;
21 int res;
23 res = __ntp_gettime50(&ntv);
24 ontvp->time.tv_sec = (int32_t)ntv.time.tv_sec;
25 ontvp->time.tv_nsec = ntv.time.tv_nsec;
26 ontvp->maxerror = ntv.maxerror;
27 ontvp->esterror = ntv.esterror;
29 return (res);