summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixChan.c
diff options
context:
space:
mode:
authorjenglish <jenglish@flightlab.com>2013-03-01 23:53:49 (GMT)
committerjenglish <jenglish@flightlab.com>2013-03-01 23:53:49 (GMT)
commit6f42bd76847d33c1e7bbfbf328b7cf591e33d6a1 (patch)
tree3ea698ca5bd081350e1aaa3fcbbadd3392e452b0 /unix/tclUnixChan.c
parent1e1bbd03fb656021da2e16d78b39336c2537f169 (diff)
downloadtcl-6f42bd76847d33c1e7bbfbf328b7cf591e33d6a1.zip
tcl-6f42bd76847d33c1e7bbfbf328b7cf591e33d6a1.tar.gz
tcl-6f42bd76847d33c1e7bbfbf328b7cf591e33d6a1.tar.bz2
Replace broken SC_SERIAL_PORT macro with plain AC_CHECK_HEADERS tests.
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r--unix/tclUnixChan.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c
index 5d11e94..fb47f6a 100644
--- a/unix/tclUnixChan.c
+++ b/unix/tclUnixChan.c
@@ -14,8 +14,10 @@
#include "tclInt.h" /* Internal definitions for Tcl. */
#include "tclIO.h" /* To get Channel type declaration. */
-#ifdef USE_TERMIOS
-# define SUPPORTS_TTY
+#undef SUPPORTS_TTY
+#if defined(HAVE_TERMIOS_H) || defined(USE_TERMIOS)
+ /* [1 Mar 2013] USE_TERMIOS: temporarily left in, to be removed */
+# define SUPPORTS_TTY 1
# include <termios.h>
# ifdef HAVE_SYS_IOCTL_H
# include <sys/ioctl.h>
@@ -39,9 +41,8 @@
# if !defined(PAREXT) && defined(CMSPAR)
# define PAREXT CMSPAR
# endif /* !PAREXT&&CMSPAR */
-#else /* !USE_TERMIOS */
-# undef SUPPORTS_TTY
-#endif /* !USE_TERMIOS */
+
+#endif /* HAVE_TERMIOS_H */
/*
* Helper macros to make parts of this file clearer. The macros do exactly