Source-Changes-HG archive

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

[src/netbsd-1-4]: src Pull up revision 1.6 (requested by mycroft):



details:   https://anonhg.NetBSD.org/src/rev/d0135c104525
branches:  netbsd-1-4
changeset: 470151:d0135c104525
user:      he <he%NetBSD.org@localhost>
date:      Sun Jan 23 12:01:34 2000 +0000

description:
Pull up revision 1.6 (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:

 lib/libwrap/workarounds.c |  6 ++----
 libexec/telnetd/telnetd.h |  3 +--
 2 files changed, 3 insertions(+), 6 deletions(-)

diffs (42 lines):

diff -r 613da15eee08 -r d0135c104525 lib/libwrap/workarounds.c
--- a/lib/libwrap/workarounds.c Sun Jan 23 12:01:27 2000 +0000
+++ b/lib/libwrap/workarounds.c Sun Jan 23 12:01:34 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: workarounds.c,v 1.2 1997/10/09 21:20:58 christos Exp $ */
+/*     $NetBSD: workarounds.c,v 1.2.4.1 2000/01/23 12:01:34 he Exp $   */
 
  /*
   * Workarounds for known system software bugs. This module provides wrappers
@@ -14,7 +14,7 @@
 #if 0
 char    sccsid[] = "@(#) workarounds.c 1.6 96/03/19 16:22:25";
 #else
-__RCSID("$NetBSD: workarounds.c,v 1.2 1997/10/09 21:20:58 christos Exp $");
+__RCSID("$NetBSD: workarounds.c,v 1.2.4.1 2000/01/23 12:01:34 he Exp $");
 #endif
 #endif
 
@@ -29,8 +29,6 @@
 #include <syslog.h>
 #include <string.h>
 
-extern int errno;
-
 #include "tcpd.h"
 
  /*
diff -r 613da15eee08 -r d0135c104525 libexec/telnetd/telnetd.h
--- a/libexec/telnetd/telnetd.h Sun Jan 23 12:01:27 2000 +0000
+++ b/libexec/telnetd/telnetd.h Sun Jan 23 12:01:34 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: telnetd.h,v 1.5 1996/02/28 20:38:25 thorpej Exp $      */
+/*     $NetBSD: telnetd.h,v 1.5.6.1 2000/01/23 12:01:43 he Exp $       */
 
 /*
  * Copyright (c) 1989, 1993
@@ -47,5 +47,4 @@
 
 /* other external variables */
 extern char **environ;
-extern int errno;
 



Home | Main Index | Thread Index | Old Index