From 166200c09492d91fbfdac3d79ebca69c44038b37 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 14 Oct 2013 12:01:40 +1100 Subject: [PATCH] Windows uses errno for WSAETIMEDOUT --- util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.h b/util.h index 8127e784..b8a5a393 100644 --- a/util.h +++ b/util.h @@ -43,7 +43,7 @@ } static inline bool sock_timeout(void) { - return (WSAGetLastError() == WSAETIMEDOUT); + return (errno == WSAETIMEDOUT); } #ifndef SHUT_RDWR #define SHUT_RDWR SD_BOTH