summaryrefslogtreecommitdiffstats
path: root/sys/bsm
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2014-04-07 20:44:00 +0000
committerpjd <pjd@FreeBSD.org>2014-04-07 20:44:00 +0000
commitf9cea37833c4e71411df31b303492fe93834ee44 (patch)
treeb7c686b0f7003c3941b77357fe997ffe7b5c10ba /sys/bsm
parent9705e55d4b6cdcd50c38161893787f74f8403d90 (diff)
downloadFreeBSD-src-f9cea37833c4e71411df31b303492fe93834ee44.zip
FreeBSD-src-f9cea37833c4e71411df31b303492fe93834ee44.tar.gz
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
Diffstat (limited to 'sys/bsm')
-rw-r--r--sys/bsm/audit_record.h9
1 files changed, 8 insertions, 1 deletions
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 <sys/types.h>
#include <sys/time.h> /* struct timeval */
-#include <sys/caprights.h> /* 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);
OpenPOWER on IntegriCloud