<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"
bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=dgregor@apple.com href="mailto:dgregor@apple.com">Douglas Gregor</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=llvmdev@cs.uiuc.edu
href="mailto:llvmdev@cs.uiuc.edu">LLVM Developers Mailing List</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, May 15, 2009 7:24 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> 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> </DIV>
<DIV><FONT face=Arial size=2>Aaron</FONT></DIV>
<DIV> </DIV></BLOCKQUOTE></BODY></HTML>