summaryrefslogtreecommitdiff
path: root/src/devpoll.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devpoll.cpp')
-rw-r--r--src/devpoll.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/devpoll.cpp b/src/devpoll.cpp
index b7d153c..ac5c72f 100644
--- a/src/devpoll.cpp
+++ b/src/devpoll.cpp
@@ -30,10 +30,12 @@
#include <fcntl.h>
#include <unistd.h>
#include <limits.h>
+#include <algorithm>
#include "devpoll.hpp"
#include "err.hpp"
#include "config.hpp"
+#include "i_poll_events.hpp"
zmq::devpoll_t::devpoll_t ()
{
@@ -156,11 +158,11 @@ void zmq::devpoll_t::stop ()
stopping = true;
}
-bool zmq::devpoll_t::loop ()
+void zmq::devpoll_t::loop ()
{
// According to the poll(7d) man page, we can retrieve
// no more then (OPEN_MAX - 1) events.
- int nfds = std::min (max_io_events, OPEN_MAX - 1);
+ int nfds = std::min ((int) max_io_events, OPEN_MAX - 1);
while (!stopping) {