From 2133e016f9b6ddf94724f4262216546a78febdd0 Mon Sep 17 00:00:00 2001 From: das Date: Wed, 19 May 2010 03:39:12 +0000 Subject: backport darwin vfork fix --- unix/tclUnixPort.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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__ */ /* -- cgit v0.12