lvm2/no-inc-audit.diff

21 lines
622 B
Diff

--- lib/device/dev-io.c
+++ lib/device/dev-io.c
@@ -31,6 +31,7 @@
# define u64 uint64_t /* Missing without __KERNEL__ */
# undef WNOHANG /* Avoid redefinition */
# undef WUNTRACED /* Avoid redefinition */
+# define _LINUX_AUDIT_H_ /* Avoid inclusion */
# include <linux/fs.h> /* For block ioctl definitions */
# define BLKSIZE_SHIFT SECTOR_SHIFT
# ifndef BLKGETSIZE64 /* fs.h out-of-date */
--- lib/filters/filter.c
+++ lib/filters/filter.c
@@ -25,6 +25,7 @@
#include <fcntl.h>
#include <limits.h>
#include <sys/ioctl.h>
+#define _LINUX_AUDIT_H_
#include <linux/fs.h>
#define NUMBER_OF_MAJORS 256