db-move: moved webkit2gtk from [testing] to [extra] (x86_64)
[arch-packages.git] / audit / trunk / audit-3.0.9-flex_array_workaround.patch
blob3f22d376ee9bd5ba982f3b4332666d419cff67a4
1 diff -urp audit-3.0.8.orig/bindings/swig/src/auditswig.i audit-3.0.8/bindings/swig/src/auditswig.i
2 --- audit-3.0.8.orig/bindings/swig/src/auditswig.i 2022-03-29 16:52:34.000000000 -0400
3 +++ audit-3.0.8/bindings/swig/src/auditswig.i 2022-03-29 17:31:15.810268855 -0400
4 @@ -39,7 +39,7 @@ signed
5 #define __attribute(X) /*nothing*/
6 typedef unsigned __u32;
7 typedef unsigned uid_t;
8 -%include "/usr/include/linux/audit.h"
9 +%include "../lib/audit.h"
10 #define __extension__ /*nothing*/
11 %include <stdint.i>
12 %include "../lib/libaudit.h"
13 diff -urp audit-3.0.8.orig/lib/audit.h audit-3.0.8/lib/audit.h
14 --- audit-3.0.8.orig/lib/audit.h 2022-03-29 17:29:30.358211892 -0400
15 +++ audit-3.0.8/lib/audit.h 2022-03-29 17:31:15.811268833 -0400
16 @@ -514,7 +514,7 @@ struct audit_rule_data {
17 __u32 values[AUDIT_MAX_FIELDS];
18 __u32 fieldflags[AUDIT_MAX_FIELDS];
19 __u32 buflen; /* total length of string fields */
20 - char buf[]; /* string fields buffer */
21 + char buf[0]; /* string fields buffer */
24 #endif /* _LINUX_AUDIT_H_ */
25 diff -urp audit-3.0.8.orig/lib/libaudit.h audit-3.0.8/lib/libaudit.h
26 --- audit-3.0.8.orig/lib/libaudit.h 2022-03-29 16:52:34.000000000 -0400
27 +++ audit-3.0.8/lib/libaudit.h 2022-03-29 17:31:15.812268812 -0400
28 @@ -27,7 +27,7 @@
29 #include <stdint.h>
30 #include <sys/socket.h>
31 #include <linux/netlink.h>
32 -#include <linux/audit.h>
33 +#include "audit.h"
34 #include <stdarg.h>
35 #include <syslog.h>
36 #ifndef __attr_access
37 Only in audit-3.0.8/lib: libaudit.h.orig