Commit afd1328d authored by Dominik Charousset's avatar Dominik Charousset

Do not use POLLPRI on Windows

parent f8070aa5
...@@ -106,7 +106,13 @@ namespace network { ...@@ -106,7 +106,13 @@ namespace network {
// poll vs epoll backend // poll vs epoll backend
#if !defined(CAF_LINUX) || defined(CAF_POLL_IMPL) // poll() multiplexer #if !defined(CAF_LINUX) || defined(CAF_POLL_IMPL) // poll() multiplexer
constexpr short input_mask = POLLIN | POLLPRI; # ifdef CAF_WINDOWS
// From the MSDN: If the POLLPRI flag is set on a socket for the Microsoft
// Winsock provider, the WSAPoll function will fail.
constexpr short input_mask = POLLIN;
# else
constexpr short input_mask = POLLIN | POLLPRI;
# endif
constexpr short error_mask = POLLRDHUP | POLLERR | POLLHUP | POLLNVAL; constexpr short error_mask = POLLRDHUP | POLLERR | POLLHUP | POLLNVAL;
constexpr short output_mask = POLLOUT; constexpr short output_mask = POLLOUT;
class event_handler; class event_handler;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment