summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2003-12-09 15:32:18 (GMT)
committerdkf <dkf@noemail.net>2003-12-09 15:32:18 (GMT)
commitcf367f8e5a42820f546fafd02037542a2f76abc8 (patch)
treee3844e03bf12ae0e74b999b696545fd09563ce08 /tools
parent0c6761b585140b2ac19c033955236683241a8944 (diff)
downloadtcl-cf367f8e5a42820f546fafd02037542a2f76abc8.zip
tcl-cf367f8e5a42820f546fafd02037542a2f76abc8.tar.gz
tcl-cf367f8e5a42820f546fafd02037542a2f76abc8.tar.bz2
#ifdef'd out errno declarations; incompatible with recent glibc. [Bug 852369]
FossilOrigin-Name: d0ff553585b09fb8d82cbe4f20b93ce61cabd0f9
Diffstat (limited to 'tools')
-rw-r--r--tools/man2tcl.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/man2tcl.c b/tools/man2tcl.c
index f7e5356..9cf16ca 100644
--- a/tools/man2tcl.c
+++ b/tools/man2tcl.c
@@ -16,7 +16,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: man2tcl.c,v 1.7 2002/05/08 23:48:13 davygrvy Exp $
+ * RCS: @(#) $Id: man2tcl.c,v 1.7.2.1 2003/12/09 15:32:20 dkf Exp $
*/
static char sccsid[] = "@(#) man2tcl.c 1.3 95/08/12 17:34:08";
@@ -32,7 +32,14 @@ static char sccsid[] = "@(#) man2tcl.c 1.3 95/08/12 17:34:08";
* Imported things that aren't defined in header files:
*/
+/*
+ * Some <errno.h> define errno to be something complex and
+ * thread-aware; in that case we definitely do not want to declare
+ * errno ourselves!
+ */
+#ifndef errno
extern int errno;
+#endif
/*
* Current line number, used for error messages.