summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorprlw1 <prlw1@pkgsrc.org>2018-07-13 11:21:29 +0000
committerprlw1 <prlw1@pkgsrc.org>2018-07-13 11:21:29 +0000
commit2b288fe367ba20b9bec82ff09ee68820be8173fc (patch)
tree2d92029be88260659b05e5cb748eb8d3ee3ffdba /security
parentcd721e59ec8ed678b598036a0aacde23b862e6e6 (diff)
downloadpkgsrc-2b288fe367ba20b9bec82ff09ee68820be8173fc.tar.gz
reallocarray exists in NetBSD's libc, so AC_CHECK_LIB will find it.
For some reason it is hidden in stdlib.h by _OPENBSD_SOURCE, so add that to p11-kit's Makefile to avoid coredumps. Fixes PR pkg/53426.
Diffstat (limited to 'security')
-rw-r--r--security/p11-kit/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/security/p11-kit/Makefile b/security/p11-kit/Makefile
index eb0209ad948..d8b2fa2874f 100644
--- a/security/p11-kit/Makefile
+++ b/security/p11-kit/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2018/07/06 15:33:39 prlw1 Exp $
+# $NetBSD: Makefile,v 1.9 2018/07/13 11:21:29 prlw1 Exp $
DISTNAME= p11-kit-0.23.12
+PKGREVISION= 1
CATEGORIES= security
#MASTER_SITES= http://p11-glue.freedesktop.org/releases/
MASTER_SITES+= ${MASTER_SITE_GITHUB:=p11-glue/}
@@ -23,6 +24,9 @@ USE_TOOLS+= pkg-config
# dirfd(3)
CFLAGS.NetBSD+= -D_NETBSD_SOURCE
+# reallocarray(3)
+CFLAGS.NetBSD+= -D_OPENBSD_SOURCE
+
CFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS
LDFLAGS.SunOS+= -lsocket -lnsl