diff options
author | Werner Koch <[email protected]> | 2016-04-05 13:43:26 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-04-05 13:43:36 +0000 |
commit | 4354720ab3631dfd2811d881566b10a72c8f2165 (patch) | |
tree | 9ad930b0dad193ef83d2bc1115c8d9e59adca4aa | |
parent | estream: Prepare for new mode flag "sysopen". (diff) | |
download | libgpg-error-4354720ab3631dfd2811d881566b10a72c8f2165.tar.gz libgpg-error-4354720ab3631dfd2811d881566b10a72c8f2165.zip |
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 <[email protected]>
-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++; |