summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixChan.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c
index 3420fd4..1bf4818 100644
--- a/unix/tclUnixChan.c
+++ b/unix/tclUnixChan.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixChan.c,v 1.16 2000/04/19 08:32:46 hobbs Exp $
+ * RCS: @(#) $Id: tclUnixChan.c,v 1.17 2000/04/19 09:17:03 hobbs Exp $
*/
#include "tclInt.h" /* Internal definitions for Tcl. */
@@ -1134,15 +1134,16 @@ TtyParseMode(interp, mode, speedPtr, parityPtr, dataPtr, stopPtr)
}
/*
* Only allow setting mark/space parity on platforms that support it
+ * Make sure to allow for the case where strchr is a macro.
* [Bug: 5089]
*/
- if (strchr(
+ if (
#if defined(PAREXT) || defined(USE_TERMIO)
- "noems",
+ strchr("noems", parity) == NULL
#else
- "noe",
+ strchr("noe", parity) == NULL
#endif
- parity) == NULL) {
+ ) {
if (interp != NULL) {
Tcl_AppendResult(interp, bad,
#if defined(PAREXT) || defined(USE_TERMIO)