Commit 994dd17e authored by Xavier Claessens's avatar Xavier Claessens

gsocket: Fix build error on Android

imr_interface.s_addr is not defined in the HAVE_IP_MREQN case.

https://bugzilla.gnome.org/show_bug.cgi?id=740791
parent 30c2ea4c
Pipeline #9336 passed with stage
in 2 minutes and 13 seconds
......@@ -2379,7 +2379,7 @@ g_socket_multicast_group_operation_ssm (GSocket *socket,
case G_SOCKET_FAMILY_IPV4:
{
#ifdef IP_ADD_SOURCE_MEMBERSHIP
#if defined (IP_ADD_SOURCE_MEMBERSHIP) && !defined(HAVE_IP_MREQN)
gint optname;
struct ip_mreq_source mc_req_src;
......@@ -2462,7 +2462,7 @@ g_socket_multicast_group_operation_ssm (GSocket *socket,
_("Error leaving multicast group: %s"),
_("No support for IPv4 source-specific multicast"));
return FALSE;
#endif /* IP_ADD_SOURCE_MEMBERSHIP */
#endif /* IP_ADD_SOURCE_MEMBERSHIP && !HAVE_IP_MREQN*/
}
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment