From 4354720ab3631dfd2811d881566b10a72c8f2165 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 5 Apr 2016 15:43:26 +0200 Subject: estream,w32: Temporary fix for gpgrt_poll. * src/estream.c (_gpgrt_poll) [W32]: Do not use FD_ISSET. -- gpgrt_poll return an error on Windows anyway and thus it does not make sense to use a possible undefined macro here. Reported-by: Andre Heinecke Signed-off-by: Werner Koch --- src/estream.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/estream.c b/src/estream.c index a593acd..499cc75 100644 --- a/src/estream.c +++ b/src/estream.c @@ -4832,6 +4832,9 @@ _gpgrt_poll (gpgrt_poll_t *fds, unsigned int nfds, int timeout) item->got_hup = 1; any = 1; } +#ifndef _WIN32 + /* NB.: We can't use FD_ISSET under windows - but we don't have + * support for it anyway. */ if (item->want_read && FD_ISSET (fd, &readfds)) { item->got_read = 1; @@ -4847,6 +4850,7 @@ _gpgrt_poll (gpgrt_poll_t *fds, unsigned int nfds, int timeout) item->got_oob = 1; any = 1; } +#endif /*!_WIN32*/ if (any) count++; -- cgit v1.2.1