[PATCH] pa_poll(): Simplify detectin of invalid fds in select() emulation mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux