diff options
author | Guillaume Friloux <guillaume.friloux@gmail.com> | 2015-01-30 14:30:22 +0100 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-02-11 17:03:39 +0100 |
commit | 797c921f10eaaecdd7d6a61bec5955e4295e727e (patch) | |
tree | 86c4651cc07c2b7ee5d74a960aeb8e4ef6e37453 | |
parent | d0dabf8613f9a2a99c6e905af8a61d7814eba84c (diff) | |
download | efl-797c921f10eaaecdd7d6a61bec5955e4295e727e.tar.gz |
ecore_con: EAGAIN is replaced by WSAEWOULDBLOCK on Windows.
-rw-r--r-- | src/lib/ecore_con/ecore_con.c | 4 |
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) num = recv(svr->fd, (char *)buf, sizeof(buf), 0); /* 0 is not a valid return value for a tcp socket */ +#ifdef _WIN32 + if ((num > 0) || ((num < 0) && (WSAGetLastError() == WSAEWOULDBLOCK))) +#else if ((num > 0) || ((num < 0) && (errno == EAGAIN))) +#endif lost_server = EINA_FALSE; else if (num < 0) ecore_con_event_server_error(obj, strerror(errno)); |