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)
commit2133e016f9b6ddf94724f4262216546a78febdd0 (patch)
tree202da56a770f7077f628a91f62b9d9da25f8f305 /unix
parentdef9844e1be2c256e198761634c15e2c84a9d484 (diff)
downloadtcl-2133e016f9b6ddf94724f4262216546a78febdd0.zip
tcl-2133e016f9b6ddf94724f4262216546a78febdd0.tar.gz
tcl-2133e016f9b6ddf94724f4262216546a78febdd0.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__ */
/*