diff options
author | David Adam <zanchey at ucc.gu.uwa.edu.au> | 2009-03-19 13:24:02 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-03-19 13:24:02 +0100 |
commit | 710ff959e3f640ca4a53bb0d83eaa767db469399 (patch) | |
tree | c2f8035618f8d478e1966ab35ebd744e16affb6e | |
parent | 77e2637590e8c08a7a934982900fcd2a77769e0e (diff) |
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.
-rw-r--r-- | gst/udp/gstudpnetutils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/udp/gstudpnetutils.c b/gst/udp/gstudpnetutils.c index e1f8297a..71828d3c 100644 --- a/gst/udp/gstudpnetutils.c +++ b/gst/udp/gstudpnetutils.c @@ -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) |