public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* [patch] Only use CW_SYNC_WINENV for Cygwin 1.15.20+
@ 2007-05-10 11:42 Maciej W. Rozycki
  2007-05-10 15:29 ` Christopher Faylor
  0 siblings, 1 reply; 9+ messages in thread
From: Maciej W. Rozycki @ 2007-05-10 11:42 UTC (permalink / raw)
  To: insight; +Cc: Christopher Faylor, Maciej W. Rozycki

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
 

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-05-14 17:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-10 11:42 [patch] Only use CW_SYNC_WINENV for Cygwin 1.15.20+ Maciej W. Rozycki
2007-05-10 15:29 ` Christopher Faylor
2007-05-14 13:49   ` Maciej W. Rozycki
2007-05-14 15:08     ` Christopher Faylor
2007-05-14 16:29       ` Maciej W. Rozycki
2007-05-14 16:54         ` Christopher Faylor
2007-05-14 16:58           ` Keith Seitz
2007-05-14 17:13             ` Christopher Faylor
2007-05-14 17:24       ` Dave Korn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).