caps: define CAP_AUDIT_READ if not defined
authorRobert Swiecki <robert@swiecki.net>
Fri, 29 Sep 2017 23:04:35 +0000 (01:04 +0200)
committerRobert Swiecki <robert@swiecki.net>
Fri, 29 Sep 2017 23:04:35 +0000 (01:04 +0200)
caps.c
contain.h

diff --git a/caps.c b/caps.c
index 104919d69baee7a8a96c54146f5c57bb15dd9c8b..2c07c83ef9a9f1849d311661c47047a3e6dcc203 100644 (file)
--- a/caps.c
+++ b/caps.c
         x, #x            \
     }
 
+#if !defined(CAP_AUDIT_READ)
+#define CAP_AUDIT_READ 37
+#endif                         /* !defined(CAP_AUDIT_READ) */
+
 /*  *INDENT-OFF* */
 static struct {
     const int val;
@@ -78,9 +82,7 @@ static struct {
     VALSTR_STRUCT(CAP_SYSLOG),
     VALSTR_STRUCT(CAP_WAKE_ALARM),
     VALSTR_STRUCT(CAP_BLOCK_SUSPEND),
-#if defined(CAP_AUDIT_READ)
     VALSTR_STRUCT(CAP_AUDIT_READ),
-#endif /* defined(CAP_AUDIT_READ) */
 };
 /*  *INDENT-ON* */
 
index 31c871484107992321a32c756444e3330d0f3d7d..edba108cc362850dd01c305132d0457356fea549 100644 (file)
--- a/contain.h
+++ b/contain.h
@@ -26,7 +26,7 @@
 
 #include "common.h"
 
-bool containSetupFD(struct nsjconf_t * nsjconf, int fd_in, int fd_out, int fd_err);
+bool containSetupFD(struct nsjconf_t *nsjconf, int fd_in, int fd_out, int fd_err);
 bool containContain(struct nsjconf_t *nsjconf);
 
 #endif                         /* NS_CONTAIN_H */