Browse Source

Windows uses errno for WSAETIMEDOUT

Con Kolivas 12 years ago
parent
commit
166200c094
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util.h

+ 1 - 1
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