Skip to content

Commit d8612ac

Browse files
committed
Fixed build error...
1 parent 83ee600 commit d8612ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

httplib.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3439,7 +3439,7 @@ inline ssize_t SocketStream::read(char *ptr, size_t size) {
34393439
}
34403440
return recv(sock_, ptr, static_cast<int>(size), 0);
34413441
#else
3442-
return HANDLE_EINTR(recv, sock_, ptr, size, 0);
3442+
return handle_EINTR([&]() { return recv(sock_, ptr, size, 0); });
34433443
#endif
34443444
}
34453445

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

0 commit comments

Comments
 (0)