From 81cb255cb355ca35453e7297af9cbc8ff7798416 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 19 Jan 2017 23:03:59 +0100 Subject: sws: use SOCKERRNO, not errno Reported-by: Gisle Vanem --- tests/server/sws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/server/sws.c b/tests/server/sws.c index 63e9fdf5c..5646f965b 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -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; } -- cgit v1.2.3