<div class="gmail_quote">On Mon, Feb 7, 2011 at 12:33 AM, Brad Roberts <span dir="ltr"><<a href="mailto:braddr@puremagic.com">braddr@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On 2/6/2011 9:30 PM, Andrew Wiley wrote:<br>
> I'm on 64 bit linux (though with a self-built 32 bit DMD), and this testcase is failing for me:<br>
> import std.stdio;<br>
> import core.sys.posix.sys.select;<br>
><br>
> int main(string[] args) {<br>
>    fd_set fdset;<br>
>    FD_SET(3, &fdset);<br>
>    assert(FD_ISSET(3, &fdset));<br>
>    return 0;<br>
> }<br>
><br>
> The same program works perfectly with GDC. Is this a DMD bug, or am I just missing something?<br>
<br>
</div></div>What version of dmd?  There was a bug with FD_SET that was fixed w/in the last couple releases.<br></blockquote><div><br></div><div>I have 2.51, and it looks like it has the broken version of FD_ISSET shown at <a href="http://d.puremagic.com/issues/show_bug.cgi?id=5209#c2">http://d.puremagic.com/issues/show_bug.cgi?id=5209#c2</a> </div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"></div><br>