40 lines
1.1 KiB
Diff
40 lines
1.1 KiB
Diff
diff --git a/bindings/swig/src/auditswig.i b/bindings/swig/src/auditswig.i
|
|
index 21aafca..8c48123 100644
|
|
--- a/bindings/swig/src/auditswig.i
|
|
+++ b/bindings/swig/src/auditswig.i
|
|
@@ -39,7 +39,7 @@ signed
|
|
#define __attribute(X) /*nothing*/
|
|
typedef unsigned __u32;
|
|
typedef unsigned uid_t;
|
|
-%include "/usr/include/linux/audit.h"
|
|
+%include "../lib/audit.h"
|
|
#define __extension__ /*nothing*/
|
|
%include <stdint.i>
|
|
%include "../lib/libaudit.h"
|
|
diff --git a/lib/audit.h b/lib/audit.h
|
|
index 51d7f2b..b2f306d 100644
|
|
--- a/lib/audit.h
|
|
+++ b/lib/audit.h
|
|
@@ -514,7 +514,7 @@ struct audit_rule_data {
|
|
__u32 values[AUDIT_MAX_FIELDS];
|
|
__u32 fieldflags[AUDIT_MAX_FIELDS];
|
|
__u32 buflen; /* total length of string fields */
|
|
- char buf[]; /* string fields buffer */
|
|
+ char buf[0]; /* string fields buffer */
|
|
};
|
|
|
|
#endif /* _LINUX_AUDIT_H_ */
|
|
diff --git a/lib/libaudit.h b/lib/libaudit.h
|
|
index 08b7d22..6b7408c 100644
|
|
--- a/lib/libaudit.h
|
|
+++ b/lib/libaudit.h
|
|
@@ -32,7 +32,7 @@ extern "C" {
|
|
#include <stdint.h>
|
|
#include <sys/socket.h>
|
|
#include <linux/netlink.h>
|
|
-#include <linux/audit.h>
|
|
+#include "audit.h"
|
|
#include <stdarg.h>
|
|
#include <syslog.h>
|
|
|