mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
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
This commit is contained in:
parent
30c2ea4c53
commit
994dd17ee5
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user