diff -Nurp a/include/sys/inotify.h b/include/sys/inotify.h
--- a/include/sys/inotify.h	2019-07-16 21:30:39.000000000 +0200
+++ b/include/sys/inotify.h	2020-02-24 16:34:27.567644669 +0100
@@ -46,6 +46,12 @@ struct inotify_event {
 #define IN_ISDIR         0x40000000
 #define IN_ONESHOT       0x80000000
 
+#if __has_include(<linux/inotify_avm.h>)
+# include <linux/inotify_avm.h>
+#else
+# define IN_RECURSIVE    0x10000000      /* use recursive events */
+#endif
+
 int inotify_init(void);
 int inotify_init1(int);
 int inotify_add_watch(int, const char *, uint32_t);