summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authordas <das>2010-05-19 03:39:12 (GMT)
committerdas <das>2010-05-19 03:39:12 (GMT)
commitceb6238c5f995d1494a0c1b78d760bc3822aeb58 (patch)
tree202da56a770f7077f628a91f62b9d9da25f8f305 /unix
parentff7ae85f3e6ee84e632eee8127726e781095a70b (diff)
downloadtcl-ceb6238c5f995d1494a0c1b78d760bc3822aeb58.zip
tcl-ceb6238c5f995d1494a0c1b78d760bc3822aeb58.tar.gz
tcl-ceb6238c5f995d1494a0c1b78d760bc3822aeb58.tar.bz2
backport darwin vfork fix
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixPort.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h
index 203d319..35979bb 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.19 2007/08/07 05:04:48 das Exp $
+ * RCS: @(#) $Id: tclUnixPort.h,v 1.27.2.20 2010/05/19 03:39:12 das Exp $
*/
#ifndef _TCLUNIXPORT
@@ -597,6 +597,12 @@ extern double strtod();
# if defined(__x86_64__) && !defined(FIXED_RDAR_4685553)
# undef USE_VFORK
# endif /* __x86_64__ */
+/* Workaround problems with vfork() when building with llvm-gcc-4.2 */
+# if defined (__llvm__) && \
+ (__GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ > 2 || \
+ (__GNUC_MINOR__ == 2 && __GNUC_PATCHLEVEL__ > 0))))
+# undef USE_VFORK
+# endif /* __llvm__ */
#endif /* __APPLE__ */
/*