Skip to content

Commit

Permalink
Fixed build error...
Browse files Browse the repository at this point in the history
  • Loading branch information
yhirose committed May 28, 2020
1 parent 83ee600 commit d8612ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -3439,7 +3439,7 @@ inline ssize_t SocketStream::read(char *ptr, size_t size) {
}
return recv(sock_, ptr, static_cast<int>(size), 0);
#else
return HANDLE_EINTR(recv, sock_, ptr, size, 0);
return handle_EINTR([&]() { return recv(sock_, ptr, size, 0); });
#endif
}

Expand All @@ -3452,7 +3452,7 @@ inline ssize_t SocketStream::write(const char *ptr, size_t size) {
}
return send(sock_, ptr, static_cast<int>(size), 0);
#else
return HANDLE_EINTR(send, sock_, ptr, size, 0);
return handle_EINTR([&]() { return send(sock_, ptr, size, 0); });
#endif
}

Expand Down

0 comments on commit d8612ac

Please sign in to comment.