OSDN Git Service

2007-05-14 Maciej W. Rozycki <macro@mips.com>
authorcgf <cgf>
Mon, 14 May 2007 17:11:42 +0000 (17:11 +0000)
committercgf <cgf>
Mon, 14 May 2007 17:11:42 +0000 (17:11 +0000)
* win/tclWinPipe.c (TclpCreateProcess): Only use CW_SYNC_WINENV if
supported by the compilation environment.

tcl/ChangeLog
tcl/win/tclWinPipe.c

index 35336ee..f2e8b18 100644 (file)
@@ -1,3 +1,8 @@
+2007-05-14  Maciej W. Rozycki  <macro@mips.com>
+
+       * win/tclWinPipe.c (TclpCreateProcess): Only use CW_SYNC_WINENV if
+       supported by the compilation environment.
+
 2006-12-01  Corinna Vinschen  <corinna@vinschen.de>
 
        * win/tclWin32Dll.c (TclWinInit): Set native cwd to Cygwin's cwd.
index d8d69dc..a77fea6 100644 (file)
@@ -1228,7 +1228,9 @@ TclpCreateProcess(
 
     BuildCommandLine(execPath, argc, argv, &cmdLine);
 
-#ifdef __CYGWIN__
+#if defined(__CYGWIN__) && \
+    (CYGWIN_VERSION_API_MAJOR > 0 || CYGWIN_VERSION_API_MINOR >= 154)
+    /* Only available in Cygwin 1.5.20+. */
     cygwin_internal (CW_SYNC_WINENV);
 #endif