summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorroy <roy@pkgsrc.org>2016-02-25 16:55:14 +0000
committerroy <roy@pkgsrc.org>2016-02-25 16:55:14 +0000
commitf79ab7b43329aab6c81b684f68823efa473cdb9e (patch)
tree08c793788d6562a8a6f8bdd10e45cf412abc1dc8 /net
parentc38a63e5d4278b3cbf0ab593b165910762a1d371 (diff)
downloadpkgsrc-f79ab7b43329aab6c81b684f68823efa473cdb9e.tar.gz
Define _OPENBSD_SOURCE so that unbound works on NetBSD 8 where
reallocarray(3) is guarded.
Diffstat (limited to 'net')
-rw-r--r--net/unbound/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/net/unbound/Makefile b/net/unbound/Makefile
index 90805e69b4d..85b668d1f32 100644
--- a/net/unbound/Makefile
+++ b/net/unbound/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.41 2015/12/28 13:48:30 bsiegert Exp $
+# $NetBSD: Makefile,v 1.42 2016/02/25 16:55:14 roy Exp $
DISTNAME= unbound-1.5.7
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= net
MASTER_SITES= http://www.unbound.net/downloads/
@@ -21,6 +21,11 @@ CONFIGURE_ARGS+= --with-pidfile=${VARBASE}/run/unbound/unbound.pid
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE}
CONFIGURE_ARGS+= --enable-allsymbols
+# unbound uses some OpenBSD libc functions such as reallocarray(3)
+# the existing tests just look for the symbol in libc regardless
+# of any
+CPPFLAGS+= -D_OPENBSD_SOURCE
+
# Add the same logic as for ldns, so sha2/gost is configured automatically
CHECK_BUILTIN.openssl= yes
.include "../../security/openssl/builtin.mk"