From fbe12f2085d153a8cf1adf2c51ec67ea63e2ca86 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Thu, 1 Aug 2019 19:26:16 +0000 Subject: [PATCH] Include caph_rights_limit() in libegacy if need be. Reported by: jenkins Sponsored by: The FreeBSD Foundation --- tools/build/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/build/Makefile b/tools/build/Makefile index e1ff4f9c8f0..0fb25fc8a17 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -51,8 +51,9 @@ SRCS+= explicit_bzero.c .if exists(/usr/include/capsicum_helpers.h) _WITH_CAPH_ENTER!= grep -c caph_enter /usr/include/capsicum_helpers.h || true +_WITH_CAPH_RIGHTS_LIMIT!= grep -c caph_rights_limit /usr/include/capsicum_helpers.h || true .endif -.if !defined(_WITH_CAPH_ENTER) || ${_WITH_CAPH_ENTER} == 0 +.if !defined(_WITH_CAPH_ENTER) || ${_WITH_CAPH_ENTER} == 0 || ${_WITH_CAPH_RIGHTS_LIMIT} == 0 .PATH: ${SRCTOP}/lib/libcapsicum INCS+= capsicum_helpers.h .PATH: ${SRCTOP}/lib/libcasper/libcasper