summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authordas <das>2006-08-21 05:37:25 (GMT)
committerdas <das>2006-08-21 05:37:25 (GMT)
commitd30744793878e6b5fce8e18cd3585bb0bbee638d (patch)
tree8b8788a7b8ee6fd0b870102e7f2417c181d499e1 /unix
parentc75964525bf639f7ac60a550db7a9a78ee35f7e6 (diff)
downloadtcl-d30744793878e6b5fce8e18cd3585bb0bbee638d.zip
tcl-d30744793878e6b5fce8e18cd3585bb0bbee638d.tar.gz
tcl-d30744793878e6b5fce8e18cd3585bb0bbee638d.tar.bz2
* unix/tclUnixPort.h (Darwin): override potentially faulty configure
detection of termios availability in all cases, since termios is known to be present on all Mac OS X releases since 10.0. [Bug 497147]
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixPort.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h
index a747c40..2bbe201 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.13 2006/08/18 07:45:43 das Exp $
+ * RCS: @(#) $Id: tclUnixPort.h,v 1.27.2.14 2006/08/21 05:37:26 das Exp $
*/
#ifndef _TCLUNIXPORT
@@ -509,7 +509,7 @@ extern double strtod();
*/
#ifdef __APPLE__
-/*
+/*
* Support for fat compiles: configure runs only once for multiple architectures
*/
# if defined(__LP64__) && defined (NO_COREFOUNDATION_64)
@@ -522,18 +522,24 @@ extern double strtod();
# else
# define HAVE_PUTENV_THAT_COPIES 1
# endif
-# define USE_TERMIOS 1
-# undef USE_TERMIO
-# undef USE_SGTTY
# endif /* __DARWIN_UNIX03 */
-/*
+/*
+ * The termios configure test program relies on the configure script being run
+ * from a terminal, which is not the case e.g. when configuring from Xcode.
+ * Since termios is known to be present on all Mac OS X releases since 10.0,
+ * override the configure defines for serial API here. [Bug 497147]
+ */
+# define USE_TERMIOS 1
+# undef USE_TERMIO
+# undef USE_SGTTY
+/*
* Include AvailabilityMacros.h here (when available) to ensure any symbolic
* MAC_OS_X_VERSION_* constants passed on the command line are translated.
*/
# ifdef HAVE_AVAILABILITYMACROS_H
# include <AvailabilityMacros.h>
# endif
-/*
+/*
* Support for weak import.
*/
# ifdef HAVE_WEAK_IMPORT