AI_V4MAPPED may not be defined in some platforms.

define to 0 in such cases, so the flag won't be affected.

Fixes T4754
This commit is contained in:
Gustavo Sverzut Barbieri 2016-10-22 21:19:56 -02:00
parent 9c0ce3946a
commit a06c9f96aa
1 changed files with 5 additions and 0 deletions

View File

@ -393,6 +393,11 @@ Eina_Bool efl_net_ip_port_fmt(char *buf, int buflen, const struct sockaddr *addr
#define INVALID_SOCKET -1
#endif
/* some platforms do not have AI_V4MAPPED, then define to 0 so bitwise OR won't be changed */
#ifndef AI_V4MAPPED
#define AI_V4MAPPED 0
#endif
/**
* @brief splits an address in the format "host:port" in two
* null-terminated strings.