FreeBSD also has sys/inotify.h available, but it is a library.
We added FindInotify.cmake to ecm a while a go for this, but never got
around to upstream the rest of the patches. On Linux, the include and
libraries are empty (but found) while on FreeBSD with inotify they
are set to the right paths.
See also D6253.