aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dns/bind84/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/dns/bind84/Makefile b/dns/bind84/Makefile
index 3f7b355a37ee..5cb8f13be8e6 100644
--- a/dns/bind84/Makefile
+++ b/dns/bind84/Makefile
@@ -80,6 +80,12 @@ post-patch:
@${MV} ${WRKSRC}/port/freebsd/Makefile.set.sed \
${WRKSRC}/port/freebsd/Makefile.set
+ @${SED} -e "s/^#ifdef __sparcv9/#if defined(sun) \&\& defined(_SOCKLEN_T) \&\& defined(__sparcv9)/" \
+ ${WRKSRC}/lib/irs/getaddrinfo.c > \
+ ${WRKSRC}/lib/irs/getaddrinfo.c.sed
+ @${MV} ${WRKSRC}/lib/irs/getaddrinfo.c.sed \
+ ${WRKSRC}/lib/irs/getaddrinfo.c
+
.if defined(PORT_REPLACES_BASE_BIND8)
.for dir in nslookup nsupdate
@${SED} -e "s#{DESTBIN}#{DESTSBIN}#g" \