* win/tclWinPipe.c (TclpCreateProcess): Only use CW_SYNC_WINENV if
supported by the compilation environment.
+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.
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