<html><head><base href="x-msg://29/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On May 15, 2009, at 12:13 PM, Aaron Gray wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div bgcolor="#ffffff" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font face="Arial" size="2"></font> </div><blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left-color: rgb(0, 0, 0); border-left-width: 2px; border-left-style: solid; margin-right: 0px; position: static; z-index: auto; "><div style="font: normal normal normal 10pt/normal arial; ">----- Original Message -----</div><div style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(228, 228, 228); font: normal normal normal 10pt/normal arial; background-position: initial initial; "><b>From:</b><span class="Apple-converted-space"> </span><a title="dgregor@apple.com" href="mailto:dgregor@apple.com">Douglas Gregor</a></div><div style="font: normal normal normal 10pt/normal arial; "><b>To:</b><span class="Apple-converted-space"> </span><a title="llvmdev@cs.uiuc.edu" href="mailto:llvmdev@cs.uiuc.edu">LLVM Developers Mailing List</a></div><div style="font: normal normal normal 10pt/normal arial; "><b>Sent:</b><span class="Apple-converted-space"> </span>Friday, May 15, 2009 7:24 PM</div><div style="font: normal normal normal 10pt/normal arial; "><b>Subject:</b><span class="Apple-converted-space"> </span>Re: [LLVMdev] [Cygwin] bug on SVN</div><div><br></div><br><div><div>On May 15, 2009, at 11:03 AM, Aaron Gray wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I am getting a bug building Cygwin on latest SVN :-</div><div> </div><div><font face="courier new,monospace">llvm[1]: Compiling Process.cpp for Debug build<br>In file included from /home/ang/git/workbench/lib/System/Process.cpp:29:<br>/home/ang/git/workbench/lib/System/Unix/Process.inc: In function 'unsigned int g<br>etColumns(int)':<br>/home/ang/git/workbench/lib/System/Unix/Process.inc:209: error: aggregate 'winsi<br>ze ws' has incomplete type and cannot be defined<br>/home/ang/git/workbench/lib/System/Unix/Process.inc:210: error: 'TIOCGWINSZ' was<br> not declared in this scope<br>make[1]: *** [/home/ang/build/workbench/lib/System/Debug/Process.o] Error 1<br>make[1]: Leaving directory `/home/ang/build/workbench/lib/System'<br>make: *** [all] Error 1</font></div><div><font face="arial narrow,sans-serif"></font> </div><div>Having IOCTL.H does not seem to be a strict enough test for struct winsize'es presence.</div><div><br><font face="courier new,monospace">#ifdef HAVE_SYS_IOCTL_H<br>  // Try to determine the width of the terminal.<br>  struct winsize ws;<br>  if (ioctl(FileID, TIOCGWINSZ, &ws) == 0)<br>    Columns = ws.ws_col;<br>#endif</font></div><div> </div><div>I could not see any changes in Process.cpp's SVN that could have caused this.<br></div><div>Anyone got a clue ?</div><div><br></div></blockquote><div><br></div><div>>It's my change, here:</div><div><font face="Arial" size="2"></font><font face="Arial" size="2"></font><br></div><div><span class="Apple-tab-span" style="white-space: pre; "></span><font face="Arial" size="2">></font><a href="http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090511/077380.html">http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090511/077380.html</a></div><br></div><div>>Is struct winsize declared anywhere in the Cygwin headers?</div><div><font face="Arial" size="2"></font> </div><div><font face="Arial" size="2">Doug,</font></div><div><font face="Arial" size="2"></font> </div><div><font face="Arial" size="2">It is declared in <sys/termios.h></font></div><div><font face="Arial" size="2"></font><br></div></blockquote></div></span></blockquote>Okay, we're now checking for <termios.h> in addition to <sys/ioctl.h>. Hopefully, things are working again on Cygwin with r72018 (but I can't test it here).</div><div><br></div><div> - Doug</div></body></html>