diff options
author | Werner Koch <wk@gnupg.org> | 2016-04-05 15:43:26 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2016-04-05 15:43:36 +0200 |
commit | 4354720ab3631dfd2811d881566b10a72c8f2165 (patch) | |
tree | 9ad930b0dad193ef83d2bc1115c8d9e59adca4aa | |
parent | 5d1adaa5fd12f65f49abeb99e5ae7226ec27ba0e (diff) | |
download | libgpg-error-4354720ab3631dfd2811d881566b10a72c8f2165.tar.gz |
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 <wk@gnupg.org>
-rw-r--r-- | src/estream.c | 4 |
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++; |