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 scopeIN_CREATE | IN_DELETE | IN_DELETE_SELF | IN_EXCL_UNLINK |IN_MODIFY |
http://man7.org/linux/man-pages/man7/inotify.7.html
IN_EXCL_UNLINK (since Linux 2.6.36)
Group it with other includes?