aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sock.h b/sock.h
index e1fd13d4..484bc317 100644
--- a/sock.h
+++ b/sock.h
@@ -8,5 +8,5 @@
#include <netdb.h>
#define sock_make_nonblocking(fd) fcntl(fd, F_SETFL, O_NONBLOCK)
#define sock_make_blocking(fd) fcntl(fd, F_SETFL, 0)
-#define sockerr_again() (errno == EINPROGRESS || errno == EINTR)
+#define sockerr_again() (errno == EINPROGRESS || errno == EINTR || errno == EAGAIN)
void closesocket(int fd);