From a6ca489ebc723d044e3b0d9da68868867b12a41c Mon Sep 17 00:00:00 2001 From: wollman Date: Thu, 21 Apr 1994 21:07:20 +0000 Subject: Enable kernelized NTP PLL support on the daemon side. If your clocks suddenly start running backwards 500 hours per day, let me know. ifdef out some bogus declarations. --- usr.sbin/xntpd/xntpd/ntp_loopfilter.c | 2 ++ usr.sbin/xntpd/xntpd/ntp_request.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.sbin/xntpd/xntpd/ntp_loopfilter.c b/usr.sbin/xntpd/xntpd/ntp_loopfilter.c index 3f66317..13cbd61 100644 --- a/usr.sbin/xntpd/xntpd/ntp_loopfilter.c +++ b/usr.sbin/xntpd/xntpd/ntp_loopfilter.c @@ -220,7 +220,9 @@ static void pps_receive P((struct recvbuf *)); #define MOD_BITS (MOD_OFFSET | MOD_MAXERROR | MOD_ESTERROR | \ MOD_STATUS | MOD_TIMECONST) extern int sigvec P((int, struct sigvec *, struct sigvec *)); +#ifndef NTP_SYSCALLS_LIBC extern int syscall P((int, void *, ...)); +#endif /* no NTP syscalls in libc */ void pll_trap P((void)); static int pll_status; /* status bits for kernel pll */ diff --git a/usr.sbin/xntpd/xntpd/ntp_request.c b/usr.sbin/xntpd/xntpd/ntp_request.c index d1fb18f..355b13b 100644 --- a/usr.sbin/xntpd/xntpd/ntp_request.c +++ b/usr.sbin/xntpd/xntpd/ntp_request.c @@ -172,7 +172,7 @@ U_LONG numresppkts; /* number of resp packets sent with data */ U_LONG errorcounter[INFO_ERR_AUTH+1]; /* lazy way to count errors, indexed */ /* by the error code */ -#ifdef KERNEL_PLL +#if defined(KERNEL_PLL) && !defined(NTP_SYSCALLS_LIBC) extern int syscall P((int, void *, ...)); #endif /* KERNEL_PLL */ -- cgit v1.1