Commit 81cb255c authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

sws: use SOCKERRNO, not errno

Reported-by: Gisle Vanem
parent 1a9a99ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1204,7 +1204,7 @@ static int send_doc(curl_socket_t sock, struct httprequest *req)
    retry:
    written = swrite(sock, buffer, num);
    if(written < 0) {
      if((EWOULDBLOCK == errno) || (EAGAIN == errno)) {
      if((EWOULDBLOCK == SOCKERRNO) || (EAGAIN == SOCKERRNO)) {
        wait_ms(10);
        goto retry;
      }