%n xntp3 %v 5.86 %c * %l * %b * %d * %f * %t xntp3-5.86.tgz %w Misc %% %setup patch -u -p1 <<'ENDPATCH' diff -ru2N xntp3-5.86/Makefile.in xntp3-MCC/Makefile.in --- xntp3-5.86/Makefile.in Wed Sep 4 05:09:18 1996 +++ xntp3-MCC/Makefile.in Wed Sep 25 05:30:48 1996 @@ -220,6 +220,7 @@ install-data: install-data-recursive -install: install-recursive - @: +install: all + install -s -m 555 ntpdate/ntpdate xntpd/xntpd /usr/sbin + install -s -m 555 util/ntptime ntpq/ntpq ntptrace/ntptrace xntpdc/xntpdc /usr/bin uninstall: uninstall-recursive diff -ru2N xntp3-5.86/config.h.in xntp3-MCC/config.h.in --- xntp3-5.86/config.h.in Fri Aug 23 03:42:45 1996 +++ xntp3-MCC/config.h.in Tue Sep 24 23:17:35 1996 @@ -287,4 +287,10 @@ /* Define if you have the __adjtimex function. */ #undef HAVE___ADJTIMEX +#ifdef HAVE___ADJTIMEX +#define ntp_adjtime(t) __adjtimex (t) +#define ntp_gettime(t) __ntp_gettime(t) +#define NTP_SYSCALLS_LIBC 1 +#include +#endif /* Define if you have the clock_settime function. */ diff -ru2N xntp3-5.86/util/ntptime.c xntp3-MCC/util/ntptime.c --- xntp3-5.86/util/ntptime.c Wed Aug 7 19:32:54 1996 +++ xntp3-MCC/util/ntptime.c Tue Sep 24 23:06:44 1996 @@ -148,8 +148,10 @@ newsigsys.sa_handler = pll_trap; newsigsys.sa_flags = 0; +#ifdef SIGSYS if (sigaction(SIGSYS, &newsigsys, &sigsys)) { perror("sigaction() fails to save SIGSYS trap"); exit(1); } +#endif #ifdef BADCALL @@ -245,8 +247,11 @@ * Put things back together the way we found them. */ -lexit: if (sigaction(SIGSYS, &sigsys, (struct sigaction *)NULL)) { +lexit: +#ifdef SIGSYS + if (sigaction(SIGSYS, &sigsys, (struct sigaction *)NULL)) { perror("sigaction() fails to restore SIGSYS trap"); exit(1); } +#endif exit(0); } diff -ru2N xntp3-5.86/util/tickadj.c xntp3-MCC/util/tickadj.c --- xntp3-5.86/util/tickadj.c Fri Aug 23 01:49:03 1996 +++ xntp3-MCC/util/tickadj.c Tue Sep 24 21:42:15 1996 @@ -22,4 +22,5 @@ #ifdef HAVE___ADJTIMEX /* Linux - also HAVE___ADJTIMEX */ #include +#include struct timex txc; diff -ru2N xntp3-5.86/xntpd/ntp_io.c xntp3-MCC/xntpd/ntp_io.c --- xntp3-5.86/xntpd/ntp_io.c Mon Aug 26 08:24:38 1996 +++ xntp3-MCC/xntpd/ntp_io.c Tue Sep 24 21:42:51 1996 @@ -68,5 +68,4 @@ # undef _IO # endif -# include #endif diff -ru2N xntp3-5.86/xntpd/ntp_loopfilter.c xntp3-MCC/xntpd/ntp_loopfilter.c --- xntp3-5.86/xntpd/ntp_loopfilter.c Wed Aug 7 19:33:41 1996 +++ xntp3-MCC/xntpd/ntp_loopfilter.c Tue Sep 24 21:48:04 1996 @@ -799,7 +799,9 @@ newsigsys.sa_handler = pll_trap; newsigsys.sa_flags = 0; +#ifdef SIGSYS if ((sigaction(SIGSYS, &newsigsys, &sigsys))) syslog(LOG_ERR, "sigaction() fails to save SIGSYS trap: %m"); +#endif /* @@ -812,8 +814,10 @@ (void)ntp_adjtime(&ntv); +#ifdef SIGSYS if ((sigaction(SIGSYS, &sigsys, (struct sigaction *)NULL))) syslog(LOG_ERR, "sigaction() fails to restore SIGSYS trap: %m"); +#endif if (pll_control) NLOG(NLOG_SYSEVENT) /* conditional if clause for conditional syslog */ ENDPATCH env CFLAGS='-O6 -fomit-frame-pointer' LDFLAGS='-Wl,-warn-common' \ ./configure --prefix=/usr --enable-MD5 --enable-DES --enable-accurate-adjtime \ --enable-step-slew --disable-all-clocks --disable-parse-clocks \ --enable-LOCAL-CLOCK make * make install %%