Commit a50df471 authored by Dominik Charousset's avatar Dominik Charousset

Fix logical-op warning

parent 8d3b79d5
......@@ -118,7 +118,11 @@ namespace network {
}
bool would_block_or_temporarily_unavailable(int errcode) {
#if EAGAIN == EWOULDBLOCK
return errcode == EAGAIN;
#else
return errcode == EAGAIN || errcode == EWOULDBLOCK;
#endif
}
string last_socket_error_as_string() {
......
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