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/01d0f4829c3e
branches:  netbsd-1-4
changeset: 470173:01d0f4829c3e
user:      he <he%NetBSD.org@localhost>
date:      Sun Jan 23 12:04:59 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_filegen.c |  6 +++---
 usr.sbin/xntp/xntpd/ntp_intres.c  |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (42 lines):

diff -r 0dde6963cafa -r 01d0f4829c3e usr.sbin/xntp/xntpd/ntp_filegen.c
--- a/usr.sbin/xntp/xntpd/ntp_filegen.c Sun Jan 23 12:04:43 2000 +0000
+++ b/usr.sbin/xntp/xntpd/ntp_filegen.c Sun Jan 23 12:04:59 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ntp_filegen.c,v 1.3 1998/03/06 18:17:21 christos Exp $ */
+/*     $NetBSD: ntp_filegen.c,v 1.3.2.1 2000/01/23 12:04:59 he Exp $   */
 
 /*
  * ntp_filegen.c,v 3.12 1994/01/25 19:06:11 kardel Exp
@@ -44,9 +44,9 @@
 /*
  * to check reason on open failure
  */
-#ifndef SYS_WINNT
+#ifdef NEED_DECLARATION_ERRNO
 extern int errno;
-#endif /* SYS_WINNT */
+#endif /* NEED_DECLARATION_ERRNO */
 
 /*
  * imported from timer
diff -r 0dde6963cafa -r 01d0f4829c3e usr.sbin/xntp/xntpd/ntp_intres.c
--- a/usr.sbin/xntp/xntpd/ntp_intres.c  Sun Jan 23 12:04:43 2000 +0000
+++ b/usr.sbin/xntp/xntpd/ntp_intres.c  Sun Jan 23 12:04:59 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ntp_intres.c,v 1.3 1998/03/06 18:17:21 christos Exp $  */
+/*     $NetBSD: ntp_intres.c,v 1.3.2.1 2000/01/23 12:05:07 he Exp $    */
 
 /*
  * ripped off from ../xnptres/xntpres.c by Greg Troxel 4/2/92
@@ -131,9 +131,9 @@
 
 
 extern int debug;              /* use global debug flag */
-#ifndef SYS_WINNT
+#ifdef NEED_DECLARATION_ERRNO
 extern int errno;
-#endif /* SYS_WINNT */
+#endif /* NEED_DECLARATION_ERRNO */
 
 static RETSIGTYPE bong         P((int));
 static void    checkparent     P((void));



Home | Main Index | Thread Index | Old Index