summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-11-18 12:27:15 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-11-18 12:53:32 -0200
commitb322a3ae53827cb880cec8d8f234f685dce6a179 (patch)
tree8bf9a671e435b6362a625e367bbe89ba1c177ff8
parent090940c3ae1f0fb2d284d916debbb44a6d254b21 (diff)
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.
-rw-r--r--src/lib/ecore_con/ecore_con_private.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/ecore_con/ecore_con_private.h b/src/lib/ecore_con/ecore_con_private.h
index 6e4994cd5b..5253985599 100644
--- a/src/lib/ecore_con/ecore_con_private.h
+++ b/src/lib/ecore_con/ecore_con_private.h
@@ -426,6 +426,15 @@ void ecore_con_mempool_shutdown(void);
426#define AI_ADDRCONFIG 0 426#define AI_ADDRCONFIG 0
427#endif 427#endif
428 428
429/* Windows do not define EAI_SYSTEM, so just define to some number
430 * that won't be matched, effectively disabling the subsequent
431 * checks/usage
432 */
433#ifndef EAI_SYSTEM
434#define EAI_SYSTEM 254 /* number that won't match anything in EAI_* */
435#endif
436
437
429void _efl_net_server_udp_client_init(Eo *client, SOCKET fd, const struct sockaddr *addr, socklen_t addrlen, const char *str); 438void _efl_net_server_udp_client_init(Eo *client, SOCKET fd, const struct sockaddr *addr, socklen_t addrlen, const char *str);
430void _efl_net_server_udp_client_feed(Eo *client, Eina_Rw_Slice slice); 439void _efl_net_server_udp_client_feed(Eo *client, Eina_Rw_Slice slice);
431 440