From dcda49233de3efb9ed361692e118ecdf2f692339 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Mon, 15 Apr 2024 17:55:07 +0100 Subject: [PATCH] sys/acl.h: reduce header pollution In commit d1dfd921774f0 the acl allocator was switched from malloc(9) to uma(9) and done in a way required vm/uma.h and prerequisites. This added considerable header pollution to sys/sysproto.h. The uma details were hidden in commit b998d381f2868, but the header pollution remained. Add less broad includes as required to keep the header self contained. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44468 --- sys/sys/acl.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/sys/acl.h b/sys/sys/acl.h index 66517cff543e..c119cfabef32 100644 --- a/sys/sys/acl.h +++ b/sys/sys/acl.h @@ -36,9 +36,11 @@ #ifndef _SYS_ACL_H_ #define _SYS_ACL_H_ -#include -#include -#include +#include +#include +#ifdef _KERNEL +#include +#endif /* * POSIX.1e and NFSv4 ACL types and related constants.