diff options
author | wollman <wollman@FreeBSD.org> | 1994-04-21 21:07:20 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-04-21 21:07:20 +0000 |
commit | a6ca489ebc723d044e3b0d9da68868867b12a41c (patch) | |
tree | 8e00069a676a9d18060c9d70bf3f1e3b1db69b25 | |
parent | b6e8e1f8c4725695768d583db8b00717bbb8dcc1 (diff) | |
download | FreeBSD-src-a6ca489ebc723d044e3b0d9da68868867b12a41c.zip FreeBSD-src-a6ca489ebc723d044e3b0d9da68868867b12a41c.tar.gz |
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.
-rw-r--r-- | usr.sbin/xntpd/xntpd/ntp_loopfilter.c | 2 | ||||
-rw-r--r-- | usr.sbin/xntpd/xntpd/ntp_request.c | 2 |
2 files changed, 3 insertions, 1 deletions
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 */ |