This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
[patch] Only use CW_SYNC_WINENV for Cygwin 1.15.20+
- From: "Maciej W. Rozycki" <macro at mips dot com>
- To: insight at sourceware dot org
- Cc: Christopher Faylor <cgf at timesys dot com>, "Maciej W. Rozycki" <macro at linux-mips dot org>
- Date: Thu, 10 May 2007 12:42:39 +0100 (BST)
- Subject: [patch] Only use CW_SYNC_WINENV for Cygwin 1.15.20+
Hello,
This change:
2006-11-30 Christopher Faylor <cgf@timesys.com>
* win/tclWinPipe.c (TclpCreateProcess): Call cygwin-specific routine to
set up windows environment.
broke building on versions of Cygwin predating 1.15.20. The
CW_SYNC_WINENV internal call was not previously available. Here is a fix.
2007-05-10 Maciej W. Rozycki <macro@mips.com>
* win/tclWinPipe.c (TclpCreateProcess): Only use CW_SYNC_WINENV
for Cygwin 1.15.20+.
OK to apply?
Maciej
tcl_cw_sync_winenv.diff
Index: binutils-quilt/src/tcl/win/tclWinPipe.c
===================================================================
--- binutils-quilt.orig/src/tcl/win/tclWinPipe.c 2006-12-01 13:31:17.000000000 +0000
+++ binutils-quilt/src/tcl/win/tclWinPipe.c 2007-05-10 12:10:25.000000000 +0100
@@ -1228,7 +1228,8 @@
BuildCommandLine(execPath, argc, argv, &cmdLine);
-#ifdef __CYGWIN__
+#if defined(__CYGWIN__) && (CYGWIN_VERSION_API_MAJOR > 1 || CYGWIN_VERSION_API_MINOR >= 154)
+ /* Only available in Cygwin 1.15.20+. */
cygwin_internal (CW_SYNC_WINENV);
#endif