diff options
Diffstat (limited to 'usr.sbin/xntpd')
-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 */ |