summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/estream.c4
1 files changed, 4 insertions, 0 deletions
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++;