mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
Fixed build error...
This commit is contained in:
parent
83ee6007da
commit
d8612ac02d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue