This is the mail archive of the insight@sourceware.org mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]