From 3335ef2baef2a417d067add3cc3af02a53dd05d9 Mon Sep 17 00:00:00 2001 From: Steve Wills Date: Mon, 10 Dec 2018 16:28:27 +0000 Subject: dns/nsd: Fix build with DNSTAP option enabled PR: 233890 Submitted by: jaap@NLnetLabs.nl (maintainer) Reported by: r00t@kaba1ah.org --- dns/nsd/Makefile | 1 + dns/nsd/files/patch-dnstap_dnstap.c | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 dns/nsd/files/patch-dnstap_dnstap.c (limited to 'dns') diff --git a/dns/nsd/Makefile b/dns/nsd/Makefile index 17c28ccd6deb..e561794ac941 100644 --- a/dns/nsd/Makefile +++ b/dns/nsd/Makefile @@ -3,6 +3,7 @@ PORTNAME= nsd PORTVERSION= 4.1.26 +PORTREVISION= 1 CATEGORIES= dns ipv6 MASTER_SITES= http://www.nlnetlabs.nl/downloads/nsd/ \ ftp://ftp.rhnet.is/pub/nsd/ diff --git a/dns/nsd/files/patch-dnstap_dnstap.c b/dns/nsd/files/patch-dnstap_dnstap.c new file mode 100644 index 000000000000..21cf112728f0 --- /dev/null +++ b/dns/nsd/files/patch-dnstap_dnstap.c @@ -0,0 +1,11 @@ +--- dnstap/dnstap.c.orig 2018-12-09 20:25:39 UTC ++++ dnstap/dnstap.c +@@ -319,7 +319,7 @@ dt_msg_fill_net(struct dt_msg *dm, + *has_port = 1; + } else if (ss->ss_family == AF_INET) { + #else +- if (ss->ss_family == AF_INET) { ++ if (ss->sin_family == AF_INET) { + #endif /* INET6 */ + struct sockaddr_in *s = (struct sockaddr_in *) ss; + -- cgit v1.2.3