Commit 263645b6 authored by Dominik Charousset's avatar Dominik Charousset

Silence equal-expression warning, close #1154

parent 1f4a6986
......@@ -120,7 +120,11 @@ void close_socket(native_socket fd) {
}
bool would_block_or_temporarily_unavailable(int errcode) {
# if EAGAIN != EWOULDBLOCK
return errcode == EAGAIN || errcode == EWOULDBLOCK;
# else
return errcode == EAGAIN;
# 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