Commit 166200c09492d91fbfdac3d79ebca69c44038b37

Con Kolivas 2013-10-14T12:01:40

Windows uses errno for WSAETIMEDOUT

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/util.h b/util.h
index 8127e78..b8a5a39 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