@ -78,7 +78,7 @@ network_status_t network_read(connection *con, int fd, chunkqueue *cq) {
switch (errno) {
case EAGAIN:
#if EWOULDBLOCK != EAGAIN
case EWOULDBLOCK
case EWOULDBLOCK:
#endif
return len ? NETWORK_STATUS_SUCCESS : NETWORK_STATUS_WAIT_FOR_EVENT;
case ECONNRESET:
@ -28,7 +28,7 @@ network_status_t network_backend_write(connection *con, int fd, chunkqueue *cq,
return did_write_something ? NETWORK_STATUS_SUCCESS : NETWORK_STATUS_WAIT_FOR_EVENT;
@ -65,7 +65,7 @@ network_status_t network_backend_writev(connection *con, int fd, chunkqueue *cq,
res = did_write_something ? NETWORK_STATUS_SUCCESS : NETWORK_STATUS_WAIT_FOR_EVENT;
goto cleanup;