$find /usr/include -name inotify.h
/usr/include/linux/inotify.h
/usr/include/arm-linux-gnueabihf/bits/inotify.h
/usr/include/arm-linux-gnueabihf/sys/inotify.h
On my pi these are 3 different file lengths
$ ls -l /usr/include/linux/inotify.h
-rw-r--r-- 1 root root 2914 Mar 31 2018 /usr/include/linux/inotify.h
$ ls -l /usr/include/arm-linux-gnueabihf/bits/inotify.h
-rw-r--r-- 1 root root 1079 Feb 6 2019
/usr/include/arm-linux-gnueabihf/bits/inotify.h
$ ls -l /usr/include/arm-linux-gnueabihf/sys/inotify.h
-rw-r--r-- 1 root root 3837 Feb 6 2019
/usr/include/arm-linux-gnueabihf/sys/inotify.h
This suggests that (a) there is an implicit preload of the include path
/usr/include/arm-linux-gnueabihf/
and (b) that if <sys/inotify.h> works that is in fact the correct file
Or (c) that richard and the man page are wrong.
--
“Ideas are inherently conservative. They yield not to the attack of
other ideas but to the massive onslaught of circumstance"
- John K Galbraith