1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-09 02:06:15 +00:00

Reduced prequisites by only using MALLOC_DECLARE() if it is defined.

This fixes a dependency of mac_label.c on namespace pollution in
<vm/uma.h>.

Similarly for SYSCTL_DECL() although I had no problems with it.  This
probably makes some includes of <sys/sysctl.h> bogus.
This commit is contained in:
Bruce Evans 2003-11-14 21:18:04 +00:00
parent 5d01eeb9e1
commit 57f253a4c6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122705

View File

@ -39,18 +39,22 @@
/*
* MAC Framework sysctl namespace.
*/
#ifdef SYSCTL_DECL
SYSCTL_DECL(_security);
SYSCTL_DECL(_security_mac);
#ifdef MAC_DEBUG
SYSCTL_DECL(_security_mac_debug);
SYSCTL_DECL(_security_mac_debug_counters);
#endif
#endif /* SYSCTL_DECL */
/*
* MAC Framework global types and typedefs.
*/
LIST_HEAD(mac_policy_list_head, mac_policy_conf);
#ifdef MALLOC_DECLARE
MALLOC_DECLARE(M_MACTEMP);
#endif
/*
* MAC Framework global variables.