the header is included only as a guard to check that the declaration and definition match, so the typo didn't cause any breakage aside from omitting this check.
@@ -1,5 +1,5 @@
#include "syscall.h"
-#include <sys/inotify.h>
+#include <sys/fanotify.h>
int fanotify_init(unsigned flags, unsigned event_f_flags)
{