mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
udp: Fix build if on Solaris
This patch checks for Solaris and uses ip_mreq instead of ip_mreqn if on this platform. Fixes #575937.
This commit is contained in:
parent
77e2637590
commit
710ff959e3
1 changed files with 2 additions and 2 deletions
|
@ -172,7 +172,7 @@ gst_udp_join_group (int sockfd, struct sockaddr_storage *addr, gchar * iface)
|
|||
switch (addr->ss_family) {
|
||||
case AF_INET:
|
||||
{
|
||||
#ifdef G_OS_WIN32
|
||||
#if defined (G_OS_WIN32) || (defined (__SVR4) && defined (__sun))
|
||||
struct ip_mreq mreq4;
|
||||
#else
|
||||
struct ip_mreqn mreq4;
|
||||
|
@ -180,7 +180,7 @@ gst_udp_join_group (int sockfd, struct sockaddr_storage *addr, gchar * iface)
|
|||
|
||||
mreq4.imr_multiaddr.s_addr =
|
||||
((struct sockaddr_in *) addr)->sin_addr.s_addr;
|
||||
#ifdef G_OS_WIN32
|
||||
#if defined (G_OS_WIN32) || (defined (__SVR4) && defined (__sun))
|
||||
mreq4.imr_interface.s_addr = INADDR_ANY;
|
||||
#else
|
||||
if (iface)
|
||||
|
|
Loading…
Reference in a new issue