Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.sbin/xntp Pull up revision 1.8 (requested by mycroft):
details: https://anonhg.NetBSD.org/src/rev/0dde6963cafa
branches: netbsd-1-4
changeset: 470172:0dde6963cafa
user: he <he%NetBSD.org@localhost>
date: Sun Jan 23 12:04:43 2000 +0000
description:
Pull up revision 1.8 (requested by mycroft):
Always do the errno indirection hack, so that non-threaded
libraries get the right errno value when linked with -lpthread.
This means "always include <errno.h> and never declare errno
yourself".
diffstat:
usr.sbin/xntp/ntpdate/ntpdate.c | 6 +++---
usr.sbin/xntp/ntptrace/ntptrace.c | 4 +++-
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (40 lines):
diff -r f7014479f920 -r 0dde6963cafa usr.sbin/xntp/ntpdate/ntpdate.c
--- a/usr.sbin/xntp/ntpdate/ntpdate.c Sun Jan 23 12:04:35 2000 +0000
+++ b/usr.sbin/xntp/ntpdate/ntpdate.c Sun Jan 23 12:04:43 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ntpdate.c,v 1.7 1998/08/12 14:11:51 christos Exp $ */
+/* $NetBSD: ntpdate.c,v 1.7.2.1 2000/01/23 12:04:43 he Exp $ */
/*
* ntpdate - set the time of day by polling one or more NTP servers
@@ -184,9 +184,9 @@
int always_step = 0;
int never_step = 0;
-#ifndef SYS_WINNT
+#ifdef NEED_DECLARATION_ERRNO
extern int errno;
-#endif /* SYS_WINNT */
+#endif /* NEED_DECLARATION_ERRNO */
static void transmit P((struct server *));
static void receive P((struct recvbuf *));
diff -r f7014479f920 -r 0dde6963cafa usr.sbin/xntp/ntptrace/ntptrace.c
--- a/usr.sbin/xntp/ntptrace/ntptrace.c Sun Jan 23 12:04:35 2000 +0000
+++ b/usr.sbin/xntp/ntptrace/ntptrace.c Sun Jan 23 12:04:43 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ntptrace.c,v 1.7 1998/08/12 14:11:52 christos Exp $ */
+/* $NetBSD: ntptrace.c,v 1.7.2.1 2000/01/23 12:04:51 he Exp $ */
/*
* ntptrace - show the chain from an NTP host leading back to
@@ -89,7 +89,9 @@
int verbose = 0;
int always_step = 0;
+#ifdef NEED_DECLARATION_ERRNO
extern int errno;
+#endif /* NEED_DECLARATION_ERRNO */
static void DoTrace P((struct server *));
static void DoTransmit P((struct server *));
Home |
Main Index |
Thread Index |
Old Index