2011/4/13 Daniel Mack <zonque at gmail.com>: > Attached is a patch to fix for one out of the few problems I still > fight with on OS X. > > I'm not sure whether this change breaks Windows support, so I'd be > happy if someone could give it a try. This is indeed a problem. return (fd >= 0) && (fcntl(fd, F_GETFL) != -1); For Windows, both fcntl and F_GETFL are not available. > Thanks, > Daniel Maarten