AI_V4MAPPED may not be defined in some platforms.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Sat, 22 Oct 2016 23:19:56 +0000 (21:19 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Sat, 22 Oct 2016 23:20:56 +0000 (21:20 -0200)
define to 0 in such cases, so the flag won't be affected.

Fixes T4754

src/lib/ecore_con/ecore_con_private.h

index 3a8c802..10cef28 100644 (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.