Source-Changes-HG archive

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

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



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

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

 include/errno.h |  6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diffs (22 lines):

diff -r 8c7779268ee4 -r 4d542647b6e7 include/errno.h
--- a/include/errno.h   Sun Jan 23 12:05:27 2000 +0000
+++ b/include/errno.h   Sun Jan 23 12:05:34 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: errno.h,v 1.1 1999/01/12 03:08:14 kleink Exp $ */
+/*     $NetBSD: errno.h,v 1.1.2.1 2000/01/23 12:05:34 he Exp $ */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -48,12 +48,8 @@
 #include <sys/featuretest.h>
 
 __BEGIN_DECLS
-#ifdef _REENTRANT
 extern int *__errno __P((void));
 #define errno (*__errno())
-#else
-extern int errno;
-#endif
 
 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
     !defined(_XOPEN_SOURCE)



Home | Main Index | Thread Index | Old Index