summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Friloux <guillaume.friloux@gmail.com>2015-01-30 14:30:22 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-02-11 17:03:39 +0100
commit797c921f10eaaecdd7d6a61bec5955e4295e727e (patch)
tree86c4651cc07c2b7ee5d74a960aeb8e4ef6e37453
parentd0dabf8613f9a2a99c6e905af8a61d7814eba84c (diff)
ecore_con: EAGAIN is replaced by WSAEWOULDBLOCK on Windows.
-rw-r--r--src/lib/ecore_con/ecore_con.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c
index ec240a2dba..1c25a50245 100644
--- a/src/lib/ecore_con/ecore_con.c
+++ b/src/lib/ecore_con/ecore_con.c
@@ -2147,7 +2147,11 @@ _ecore_con_cl_read(Ecore_Con_Server *obj)
2147 num = recv(svr->fd, (char *)buf, sizeof(buf), 0); 2147 num = recv(svr->fd, (char *)buf, sizeof(buf), 0);
2148 2148
2149 /* 0 is not a valid return value for a tcp socket */ 2149 /* 0 is not a valid return value for a tcp socket */
2150#ifdef _WIN32
2151 if ((num > 0) || ((num < 0) && (WSAGetLastError() == WSAEWOULDBLOCK)))
2152#else
2150 if ((num > 0) || ((num < 0) && (errno == EAGAIN))) 2153 if ((num > 0) || ((num < 0) && (errno == EAGAIN)))
2154#endif
2151 lost_server = EINA_FALSE; 2155 lost_server = EINA_FALSE;
2152 else if (num < 0) 2156 else if (num < 0)
2153 ecore_con_event_server_error(obj, strerror(errno)); 2157 ecore_con_event_server_error(obj, strerror(errno));