forked from enlightenment/efl
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:
parent
9c0ce3946a
commit
a06c9f96aa
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue