Re: [PATCH v2 13/14] daemon: use select() instead of poll()
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Jan 16, 2010, 08:06 UTC
- Message-ID
- <201001160906.26270.j6t@kdbg.org>
- In-Reply-To
- <40aa078e1001151523o538b44c7x95def3447650eea4@mail.gmail.com>
On Samstag, 16. Januar 2010, Erik Faye-Lund wrote:
Show 10 quoted lines
> +static inline void mingw_fd_set(int fd, fd_set *set)
> +{
> + FD_SET(_get_osfhandle(fd), set);
> +}
> #undef FD_SET
> +#define FD_SET(a,b) mingw_fd_set(a,b)
> +
> #undef FD_ISSET
> #define FD_ISSET(fd, set) __WSAFDIsSet(_get_osfhandle(fd), (fd_set
> *)(set))Ah, yes, how obvious ;) You are going to do the same with FD_ISSET as well, aren't you?
-- Hannes