1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 16:18:48 -05:00

sws: use SOCKERRNO, not errno

Reported-by: Gisle Vanem
This commit is contained in:
Daniel Stenberg 2017-01-19 23:03:59 +01:00
parent 1a9a99adf9
commit 81cb255cb3

View File

@ -1204,7 +1204,7 @@ static int send_doc(curl_socket_t sock, struct httprequest *req)
retry: retry:
written = swrite(sock, buffer, num); written = swrite(sock, buffer, num);
if(written < 0) { if(written < 0) {
if((EWOULDBLOCK == errno) || (EAGAIN == errno)) { if((EWOULDBLOCK == SOCKERRNO) || (EAGAIN == SOCKERRNO)) {
wait_ms(10); wait_ms(10);
goto retry; goto retry;
} }