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/xntpd Pull up revision 1.4 (requested by ...
details: https://anonhg.NetBSD.org/src/rev/8c7779268ee4
branches: netbsd-1-4
changeset: 470175:8c7779268ee4
user: he <he%NetBSD.org@localhost>
date: Sun Jan 23 12:05:27 2000 +0000
description:
Pull up revision 1.4 (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/xntpd/ntp_util.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r 394131ac4945 -r 8c7779268ee4 usr.sbin/xntp/xntpd/ntp_util.c
--- a/usr.sbin/xntp/xntpd/ntp_util.c Sun Jan 23 12:05:19 2000 +0000
+++ b/usr.sbin/xntp/xntpd/ntp_util.c Sun Jan 23 12:05:27 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ntp_util.c,v 1.3 1998/03/06 18:17:22 christos Exp $ */
+/* $NetBSD: ntp_util.c,v 1.3.2.1 2000/01/23 12:05:27 he Exp $ */
/*
* ntp_util.c - stuff I didn't have any other place for
@@ -77,9 +77,9 @@
* We query the errno to see what kind of error occured
* when opening the drift file.
*/
-#ifndef SYS_WINNT
+#ifdef NEED_DECLARATION_ERRNO
extern int errno;
-#endif /* SYS_WINNT */
+#endif /* NEED_DECLARATION_ERRNO */
/*
* This controls whether stats are written to the fileset. Provided
Home |
Main Index |
Thread Index |
Old Index