aboutsummaryrefslogtreecommitdiffstats
path: root/fanotify.c
diff options
context:
space:
mode:
Diffstat (limited to 'fanotify.c')
-rw-r--r--fanotify.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/fanotify.c b/fanotify.c
index 02094eab..e421b01e 100644
--- a/fanotify.c
+++ b/fanotify.c
@@ -1,9 +1,15 @@
#include "defs.h"
-#include <linux/fanotify.h>
#include "xlat/fan_classes.h"
#include "xlat/fan_init_flags.h"
+#ifndef FAN_ALL_CLASS_BITS
+# define FAN_ALL_CLASS_BITS (FAN_CLASS_NOTIF | FAN_CLASS_CONTENT | FAN_CLASS_PRE_CONTENT)
+#endif
+#ifndef FAN_NOFD
+# define FAN_NOFD -1
+#endif
+
int
sys_fanotify_init(struct tcb *tcp)
{