Mikael let me know that DirectoryWatcher broke build for older kernels because of IN_EXCL_UNLINK.
We have RHEL 6.10 buildbots with glibc 2.12.2 and kernel 2.6.32 where I see
- Looking for include file sys/inotify.h
- Looking for include file sys/inotify.h - found
but then get
/repo/uabelho/master/clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp:335:48: error: 'IN_EXCL_UNLINK' was not declared in this scope IN_CREATE | IN_DELETE | IN_DELETE_SELF | IN_EXCL_UNLINK | IN_MODIFY |
IN_EXCL_UNLINK (since Linux 2.6.36)