summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLee Salzman <[email protected]>2012-09-26 14:06:58 +0300
committerLee Salzman <[email protected]>2012-09-26 14:06:58 +0300
commit9dff8f72cfaae437a2e208338dd14544dbc20d02 (patch)
treedb160e35a6df8bc9b19239350e7bee19b3089db2
parent0e0ace781b3d41c08d310e678f4e08e323a6a3b8 (diff)
downloadenet-9dff8f72cfaae437a2e208338dd14544dbc20d02.tar.gz
enet-9dff8f72cfaae437a2e208338dd14544dbc20d02.zip
EWOULDBLOCK -> WSAEWOULDBLOCK
-rw-r--r--win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32.c b/win32.c
index 850d8a3..dcc0791 100644
--- a/win32.c
+++ b/win32.c
@@ -193,7 +193,7 @@ enet_socket_connect (ENetSocket socket, const ENetAddress * address)
sin.sin_addr.s_addr = address -> host;
result = connect (socket, (struct sockaddr *) & sin, sizeof (struct sockaddr_in));
- if (result == SOCKET_ERROR && WSAGetLastError () != EWOULDBLOCK)
+ if (result == SOCKET_ERROR && WSAGetLastError () != WSAEWOULDBLOCK)
return -1;
return 0;