From b80696af0015a554b655c40e3377f6f756b6c05f Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Sat, 5 Jan 2019 17:04:09 -0800 Subject: [PATCH] windows (compile) fix --- ixwebsocket/IXSocketConnect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ixwebsocket/IXSocketConnect.cpp b/ixwebsocket/IXSocketConnect.cpp index e8a37ca1..f6f0ffde 100644 --- a/ixwebsocket/IXSocketConnect.cpp +++ b/ixwebsocket/IXSocketConnect.cpp @@ -79,7 +79,7 @@ namespace ix if (::connect(fd, address->ai_addr, address->ai_addrlen) == -1) { #ifdef _WIN32 - if (Socket::getErrno() == EWOULDBLOCK) errno = EINPROGRESS; + if (WSAGetLastError() == WSAEWOULDBLOCK) errno = EINPROGRESS; #endif if (errno != EINPROGRESS) {