aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-04-10 18:03:11 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-04-10 18:03:11 +0300
commit4a4e93fb5a5243c2208a87cd3485bd2979dac2a5 (patch)
tree01c2ef1b02b7e2a961ed1a8f615ce657ba16142b /src
parent830433ddd64c1811a3b7c1f1ef0b7a5e895d4b79 (diff)
downloadlibmicrohttpd-4a4e93fb5a5243c2208a87cd3485bd2979dac2a5.tar.gz
libmicrohttpd-4a4e93fb5a5243c2208a87cd3485bd2979dac2a5.zip
Fixed compatibility with platforms without poll()
Diffstat (limited to 'src')
-rw-r--r--src/microhttpd/daemon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index b92d5534..49a1b828 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -814,6 +814,7 @@ urh_from_fdset (struct MHD_UpgradeResponseHandle *urh,
814 } 814 }
815} 815}
816 816
817#ifdef HAVE_POLL
817 818
818/** 819/**
819 * Set required 'event' members in 'pollfd' elements, 820 * Set required 'event' members in 'pollfd' elements,
@@ -904,6 +905,7 @@ urh_from_pollfd(struct MHD_UpgradeResponseHandle *urh,
904 if (0 != (p[1].revents & MHD_POLL_REVENTS_ERRROR)) 905 if (0 != (p[1].revents & MHD_POLL_REVENTS_ERRROR))
905 urh->mhd.celi |= MHD_EPOLL_STATE_READ_READY | MHD_EPOLL_STATE_WRITE_READY; 906 urh->mhd.celi |= MHD_EPOLL_STATE_READ_READY | MHD_EPOLL_STATE_WRITE_READY;
906} 907}
908#endif /* HAVE_POLL */
907#endif /* HTTPS_SUPPORT && UPGRADE_SUPPORT */ 909#endif /* HTTPS_SUPPORT && UPGRADE_SUPPORT */
908 910
909 911