efl_net: define EAI_SYSTEM when it's not defined (ie: Windows).

its value is unimportant, just do not match any other EAI error value.

Partially fixes D4357.
This commit is contained in:
Gustavo Sverzut Barbieri 2016-11-18 12:27:15 -02:00
parent 090940c3ae
commit b322a3ae53
1 changed files with 9 additions and 0 deletions

View File

@ -426,6 +426,15 @@ void ecore_con_mempool_shutdown(void);
#define AI_ADDRCONFIG 0
#endif
/* Windows do not define EAI_SYSTEM, so just define to some number
* that won't be matched, effectively disabling the subsequent
* checks/usage
*/
#ifndef EAI_SYSTEM
#define EAI_SYSTEM 254 /* number that won't match anything in EAI_* */
#endif
void _efl_net_server_udp_client_init(Eo *client, SOCKET fd, const struct sockaddr *addr, socklen_t addrlen, const char *str);
void _efl_net_server_udp_client_feed(Eo *client, Eina_Rw_Slice slice);