Fix build on OS X with BIND9 system resolver by defining BIND_8_COMPAT.

(This needs to be fixed more generally across pkgsrc post-freeze.)

Reviewed by wiz.
This commit is contained in:
schmonz 2005-09-17 20:58:59 +00:00
parent d6c9a62d35
commit 8e7a8c797a

9
net/p5-Net-DNS/hacks.mk Normal file
View file

@ -0,0 +1,9 @@
# $NetBSD: hacks.mk,v 1.1 2005/09/17 20:58:59 schmonz Exp $
.include "../../mk/bsd.prefs.mk"
# Fix build on OS X with BIND9 system resolver
.if ${OPSYS} == "Darwin"
PKG_HACKS+= macosx-bind9-bind8compat
CFLAGS+= -DBIND_8_COMPAT=1
.endif