Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/usr.bin/telnet Pull up revision 1.16 (requested by mycr...



details:   https://anonhg.NetBSD.org/src/rev/45abfb9b309f
branches:  netbsd-1-4
changeset: 470158:45abfb9b309f
user:      he <he%NetBSD.org@localhost>
date:      Sun Jan 23 12:02:43 2000 +0000

description:
Pull up revision 1.16 (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.bin/telnet/externs.h |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (31 lines):

diff -r b48b83a00bbf -r 45abfb9b309f usr.bin/telnet/externs.h
--- a/usr.bin/telnet/externs.h  Sun Jan 23 12:02:34 2000 +0000
+++ b/usr.bin/telnet/externs.h  Sun Jan 23 12:02:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: externs.h,v 1.13 1998/12/20 14:48:33 christos Exp $    */
+/*     $NetBSD: externs.h,v 1.13.2.1 2000/01/23 12:02:43 he Exp $      */
 
 /*
  * Copyright (c) 1988, 1990, 1993
@@ -63,9 +63,7 @@
 #else
 #include <sys/filio.h>
 #endif
-#ifdef CRAY
-# include <errno.h>
-#endif /* CRAY */
+#include <errno.h>
 #ifdef USE_TERMIO
 # ifndef       VINTR
 #  ifdef SYSV_TERMIO
@@ -107,10 +105,6 @@
 
 #define        SUBBUFSIZE      256
 
-#ifndef CRAY
-extern int errno;              /* outside this world */
-#endif /* !CRAY */
-
 #include <sys/cdefs.h>
 #define P __P
 



Home | Main Index | Thread Index | Old Index