From f9cea37833c4e71411df31b303492fe93834ee44 Mon Sep 17 00:00:00 2001 From: pjd Date: Mon, 7 Apr 2014 20:44:00 +0000 Subject: IFp4 @1192291: - Don't include sys/caprights.h, leverage the fact that cap_rights_t is also defined in sys/types.h. - Include sys/types.h directly. - For systems that do not have cap_rights_t, define it, so we can use it in au_to_rights() prototype. Discussed with: rwatson --- sys/bsm/audit_record.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sys/bsm') diff --git a/sys/bsm/audit_record.h b/sys/bsm/audit_record.h index 7e6074f..5da5e4f2 100644 --- a/sys/bsm/audit_record.h +++ b/sys/bsm/audit_record.h @@ -33,8 +33,8 @@ #ifndef _BSM_AUDIT_RECORD_H_ #define _BSM_AUDIT_RECORD_H_ +#include #include /* struct timeval */ -#include /* cap_rights_t */ /* * Token type identifiers. @@ -191,6 +191,13 @@ struct sockaddr_un; struct vnode_au_info; #endif +#ifndef _CAP_RIGHTS_T_DECLARED +#define _CAP_RIGHTS_T_DECLARED +struct cap_rights; + +typedef struct cap_rights cap_rights_t; +#endif + int au_open(void); int au_write(int d, token_t *m); int au_close(int d, int keep, short event); -- cgit v1.1