Author: ilor
Date: Mon May 18 22:31:43 2009
New Revision: 35741

URL: http://svn.gna.org/viewcvs/wesnoth?rev=35741&view=rev
Log:
add win32-specific error check to receive_with_timeout instead of ignroing the 
error

Modified:
    branches/1.6/src/network_worker.cpp

Modified: branches/1.6/src/network_worker.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/src/network_worker.cpp?rev=35741&r1=35740&r2=35741&view=diff
==============================================================================
--- branches/1.6/src/network_worker.cpp (original)
+++ branches/1.6/src/network_worker.cpp Mon May 18 22:31:43 2009
@@ -234,6 +234,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

Reply via email to