pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/p11-kit reallocarray exists in NetBSD's libc, ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e19570710ddc
branches:  trunk
changeset: 310359:e19570710ddc
user:      prlw1 <prlw1%pkgsrc.org@localhost>
date:      Fri Jul 13 11:21:29 2018 +0000

description:
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:

 security/p11-kit/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 9403b8614f73 -r e19570710ddc security/p11-kit/Makefile
--- a/security/p11-kit/Makefile Fri Jul 13 08:06:58 2018 +0000
+++ b/security/p11-kit/Makefile Fri Jul 13 11:21:29 2018 +0000
@@ -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 @@
 # dirfd(3)
 CFLAGS.NetBSD+=        -D_NETBSD_SOURCE
 
+# reallocarray(3)
+CFLAGS.NetBSD+=        -D_OPENBSD_SOURCE
+
 CFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS
 LDFLAGS.SunOS+=        -lsocket -lnsl
 



Home | Main Index | Thread Index | Old Index