diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2003-12-09 15:32:19 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2003-12-09 15:32:19 (GMT) |
commit | fbbfaea5fca1f1d6c39d4d126ffae9d71f4eb8e6 (patch) | |
tree | e3844e03bf12ae0e74b999b696545fd09563ce08 | |
parent | 51aefc5291128249b16968dfa9a4f8cc9779d9d8 (diff) | |
download | tcl-fbbfaea5fca1f1d6c39d4d126ffae9d71f4eb8e6.zip tcl-fbbfaea5fca1f1d6c39d4d126ffae9d71f4eb8e6.tar.gz tcl-fbbfaea5fca1f1d6c39d4d126ffae9d71f4eb8e6.tar.bz2 |
#ifdef'd out errno declarations; incompatible with recent glibc. [Bug 852369]
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | tools/man2tcl.c | 9 | ||||
-rw-r--r-- | unix/tclUnixPort.h | 4 |
3 files changed, 17 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2003-12-09 Donal K. Fellows <donal.k.fellows@man.ac.uk> + + * unix/tclUnixPort.h: #ifdef'd out declarations of errno which + * tools/man2tcl.c: are known to cause problems with recent + glibc. [Bug 852369] + 2003-12-03 Don Porter <dgp@users.sourceforge.net> * generic/tcl.h: Bumped patch level to 8.4.5.1 to distinguish 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. diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h index 8574bfa..d694488 100644 --- a/unix/tclUnixPort.h +++ b/unix/tclUnixPort.h @@ -19,7 +19,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixPort.h,v 1.27.2.1 2003/05/13 08:41:26 das Exp $ + * RCS: @(#) $Id: tclUnixPort.h,v 1.27.2.2 2003/12/09 15:32:21 dkf Exp $ */ #ifndef _TCLUNIXPORT @@ -464,7 +464,9 @@ EXTERN int gettimeofday _ANSI_ARGS_((struct timeval *tp, * isn't generally declared in a header file anywhere. */ +#ifdef NO_ERRNO extern int errno; +#endif /* * Not all systems declare all the errors that Tcl uses! Provide some |