diff options
author | hans <hans> | 2011-10-13 13:28:12 +0000 |
---|---|---|
committer | hans <hans> | 2011-10-13 13:28:12 +0000 |
commit | c0e56d7f8331c61f0b16ea8aa78a5d91308c4a1b (patch) | |
tree | 906c1704e131e74e1088aa60e6a707af7f8dc071 /multimedia | |
parent | 748240990c253bc26afeaf15c2a303a2f8670a70 (diff) | |
download | pkgsrc-c0e56d7f8331c61f0b16ea8aa78a5d91308c4a1b.tar.gz |
Fix build on SunOS.
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/farsight2/distinfo | 4 | ||||
-rw-r--r-- | multimedia/farsight2/patches/patch-aj | 36 |
2 files changed, 34 insertions, 6 deletions
diff --git a/multimedia/farsight2/distinfo b/multimedia/farsight2/distinfo index 5e5cbf7f6e7..fd9bf84bc15 100644 --- a/multimedia/farsight2/distinfo +++ b/multimedia/farsight2/distinfo @@ -1,11 +1,11 @@ -$NetBSD: distinfo,v 1.15 2011/03/12 06:33:35 obache Exp $ +$NetBSD: distinfo,v 1.16 2011/10/13 13:28:12 hans Exp $ SHA1 (farsight2-0.0.26.tar.gz) = 4d0e105a807075dd2a5c837aca92febdef6229a4 RMD160 (farsight2-0.0.26.tar.gz) = 62e7b6f114040e0cd3e995439532a6937e0dbafa Size (farsight2-0.0.26.tar.gz) = 1167062 bytes SHA1 (patch-ab) = 27fd12ad2d1774cbeb7c11a4cee5b40e5ea97853 SHA1 (patch-ai) = 6459729f80f592a2a333d683b05a139b499f46c6 -SHA1 (patch-aj) = c8f92433243a5741403721bb248e4471a23583eb +SHA1 (patch-aj) = d73bcbec6b7c8387a01ab391a52373080ba44e61 SHA1 (patch-ak) = 591ab7b6afefc84443280b01c765492007686ff6 SHA1 (patch-gst-libs_gst_farsight_Makefile.in) = e56468e52401548b0dac0225153abde1a5d548e3 SHA1 (patch-python_Makefile.in) = 7c9396e148958108deabb4286f8945edb10843fb diff --git a/multimedia/farsight2/patches/patch-aj b/multimedia/farsight2/patches/patch-aj index 30eaa642511..b752d188829 100644 --- a/multimedia/farsight2/patches/patch-aj +++ b/multimedia/farsight2/patches/patch-aj @@ -1,12 +1,40 @@ -$NetBSD: patch-aj,v 1.2 2010/08/05 18:55:18 drochner Exp $ +$NetBSD: patch-aj,v 1.3 2011/10/13 13:28:12 hans Exp $ ---- gst-libs/gst/farsight/fs-interfaces.c.orig 2010-05-31 19:20:03.000000000 +0000 -+++ gst-libs/gst/farsight/fs-interfaces.c -@@ -44,6 +44,7 @@ +--- gst-libs/gst/farsight/fs-interfaces.c.orig 2011-02-10 20:29:39.000000000 +0100 ++++ gst-libs/gst/farsight/fs-interfaces.c 2011-10-12 18:58:16.132751166 +0200 +@@ -44,6 +44,10 @@ #include <sys/socket.h> #include <ifaddrs.h> #endif +#include <netinet/in.h> ++#ifdef __sun ++#include <sys/sockio.h> ++#endif #include <gst/gst.h> +@@ -327,8 +329,8 @@ gchar * + fs_interfaces_get_ip_for_interface (gchar *interface_name) + { + union { +- struct sockaddr s_addr; +- struct sockaddr_in sin_addr; ++ struct sockaddr u_s_addr; ++ struct sockaddr_in u_sin_addr; + } sockaddr_union; + struct ifreq ifr; + gint sockfd; +@@ -351,10 +353,10 @@ fs_interfaces_get_ip_for_interface (gcha + } + + close (sockfd); +- sockaddr_union.s_addr = ifr.ifr_addr; ++ sockaddr_union.u_s_addr = ifr.ifr_addr; + GST_DEBUG ("Address for %s: %s", interface_name, +- inet_ntoa (sockaddr_union.sin_addr.sin_addr)); +- return g_strdup (inet_ntoa (sockaddr_union.sin_addr.sin_addr)); ++ inet_ntoa (sockaddr_union.u_sin_addr.sin_addr)); ++ return g_strdup (inet_ntoa (sockaddr_union.u_sin_addr.sin_addr)); + } + + #else /* G_OS_UNIX */ |