caps: define CAP_AUDIT_READ if not defined

This commit is contained in:
Robert Swiecki 2017-09-30 01:04:35 +02:00
parent a85f5505d2
commit 7820553cb9
2 changed files with 5 additions and 3 deletions

6
caps.c
View File

@ -36,6 +36,10 @@
x, #x \ x, #x \
} }
#if !defined(CAP_AUDIT_READ)
#define CAP_AUDIT_READ 37
#endif /* !defined(CAP_AUDIT_READ) */
/* *INDENT-OFF* */ /* *INDENT-OFF* */
static struct { static struct {
const int val; const int val;
@ -78,9 +82,7 @@ static struct {
VALSTR_STRUCT(CAP_SYSLOG), VALSTR_STRUCT(CAP_SYSLOG),
VALSTR_STRUCT(CAP_WAKE_ALARM), VALSTR_STRUCT(CAP_WAKE_ALARM),
VALSTR_STRUCT(CAP_BLOCK_SUSPEND), VALSTR_STRUCT(CAP_BLOCK_SUSPEND),
#if defined(CAP_AUDIT_READ)
VALSTR_STRUCT(CAP_AUDIT_READ), VALSTR_STRUCT(CAP_AUDIT_READ),
#endif /* defined(CAP_AUDIT_READ) */
}; };
/* *INDENT-ON* */ /* *INDENT-ON* */