Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include Do the pthread errno hack. That is, *always* do:
details: https://anonhg.NetBSD.org/src/rev/c2a680485db7
branches: trunk
changeset: 480841:c2a680485db7
user: mycroft <mycroft%NetBSD.org@localhost>
date: Fri Jan 21 17:11:20 2000 +0000
description:
Do the pthread errno hack. That is, *always* do:
#define errno (*__errno())
This is necessary to make non-threaded libraries (e.g. libX11) continue to
work correctly when linked with -lpthread. glibc also does this.
diffstat:
include/errno.h | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diffs (22 lines):
diff -r 9142daa1ccf9 -r c2a680485db7 include/errno.h
--- a/include/errno.h Fri Jan 21 17:08:33 2000 +0000
+++ b/include/errno.h Fri Jan 21 17:11:20 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.2 2000/01/21 17:11:20 mycroft 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