Author: ilor
Date: Mon May 18 22:13:54 2009
New Revision: 35739
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35739&view=rev
Log:
add win32-specific error check to receive_with_timeout instead of ignroing the
error
Modified:
trunk/src/network_worker.cpp
Modified: trunk/src/network_worker.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/network_worker.cpp?rev=35739&r1=35738&r2=35739&view=diff
==============================================================================
--- trunk/src/network_worker.cpp (original)
+++ trunk/src/network_worker.cpp Mon May 18 22:13:54 2009
@@ -235,6 +235,8 @@
if(errno == EAGAIN)
#elif defined(EWOULDBLOCK)
if(errno == EWOULDBLOCK)
+#elif defined(_WIN32) && defined(WSAEWOULDBLOCK)
+ if(WSAGetLastError() == WSAEWOULDBLOCK)
#else
// Ignore the error.
if(true)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits