<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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><br></div><div><span class="Apple-tab-span" style="white-space:pre">    </span><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><br></div><span class="Apple-tab-span" style="white-space:pre">   </span>- Doug</body></html>