summaryrefslogtreecommitdiff
path: root/net/mDNSResponder/patches
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2011-10-04 14:08:48 +0000
committerhans <hans@pkgsrc.org>2011-10-04 14:08:48 +0000
commit9f2ea204476baa11a43ba3fde7c0112f87cd24da (patch)
tree992041056932342f3d18044db22a26978725fa2f /net/mDNSResponder/patches
parent97b0355d266e1835828c7395733f2bce29e369d3 (diff)
downloadpkgsrc-9f2ea204476baa11a43ba3fde7c0112f87cd24da.tar.gz
Fix build on SunOS.
Diffstat (limited to 'net/mDNSResponder/patches')
-rw-r--r--net/mDNSResponder/patches/patch-Clients_dns-sd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/mDNSResponder/patches/patch-Clients_dns-sd.c b/net/mDNSResponder/patches/patch-Clients_dns-sd.c
index 9c94fe027e5..83e67837188 100644
--- a/net/mDNSResponder/patches/patch-Clients_dns-sd.c
+++ b/net/mDNSResponder/patches/patch-Clients_dns-sd.c
@@ -1,13 +1,12 @@
-$NetBSD: patch-Clients_dns-sd.c,v 1.3 2011/06/03 19:30:39 shattered Exp $
+$NetBSD: patch-Clients_dns-sd.c,v 1.4 2011/10/04 14:08:48 hans Exp $
--- Clients/dns-sd.c.orig 2010-05-15 00:16:11.000000000 +0000
+++ Clients/dns-sd.c
@@ -170,8 +170,19 @@ cl dns-sd.c -I../mDNSShared -DNOT_HAVE_G
- #include <netinet/in.h> // For struct sockaddr_in()
#include <arpa/inet.h> // For inet_addr()
#include <net/if.h> // For if_nametoindex()
static const char kFilePathSep = '/';
-+#ifdef __linux__
++#if defined(__linux__) || defined(__sun)
+ static size_t _sa_len(const struct sockaddr *addr)
+ {
+ if (addr->sa_family == AF_INET) return (sizeof(struct sockaddr_in));