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.11 (requested by...



details:   https://anonhg.NetBSD.org/src/rev/394131ac4945
branches:  netbsd-1-4
changeset: 470174:394131ac4945
user:      he <he%NetBSD.org@localhost>
date:      Sun Jan 23 12:05:19 2000 +0000

description:
Pull up revision 1.11 (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_io.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 01d0f4829c3e -r 394131ac4945 usr.sbin/xntp/xntpd/ntp_io.c
--- a/usr.sbin/xntp/xntpd/ntp_io.c      Sun Jan 23 12:04:59 2000 +0000
+++ b/usr.sbin/xntp/xntpd/ntp_io.c      Sun Jan 23 12:05:19 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ntp_io.c,v 1.9.2.1 1999/06/21 14:49:07 perry Exp $     */
+/*     $NetBSD: ntp_io.c,v 1.9.2.2 2000/01/23 12:05:19 he Exp $        */
 
 /*
  * xntp_io.c - input/output routines for xntpd.  The socket-opening code
@@ -166,9 +166,9 @@
  */
 extern u_long current_time;
 
-#ifndef SYS_WINNT
+#ifdef NEED_DECLARATION_ERRNO
 extern int errno;
-#endif /* SYS_WINNT */
+#endif /* NEED_DECLARATION_ERRNO */
 extern int debug;
 
 static int     create_sockets  P((u_int));



Home | Main Index | Thread Index | Old Index