On Darwin define BIND_8_COMPAT to resolve build issue as dsniff utilises the

BIND8 API, not the v9 API.

Closes PR pkg/39062
Reviewed by wiz@
This commit is contained in:
sevan 2015-01-26 16:05:04 +00:00
parent cf2c455d86
commit 586c550bac

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2013/10/06 08:28:37 obache Exp $
# $NetBSD: Makefile,v 1.13 2015/01/26 16:05:04 sevan Exp $
.include "../../security/dsniff/Makefile.common"
@ -11,6 +11,10 @@ CONFIGURE_ARGS+= --without-x
INSTALLATION_DIRS+= ${PKGMANDIR}/man8
INSTALL_MAKE_FLAGS+= install_prefix=${DESTDIR}
.if ${OPSYS} == "Darwin"
CFLAGS+= -DBIND_8_COMPAT
.endif
post-configure:
( cd ${WRKSRC} \
&& grep '#define.*HAVE_SYS_QUEUE_H' config.h >/dev/null \