DirectoryWatcher-linux.cpp fails to build on SLES11
| Bugzilla Link | 42824 |
| Resolution | FIXED |
| Resolved on | Aug 06, 2019 01:23 |
| Version | 9.0 |
| OS | Windows NT |
| Blocks | llvm/llvm-project#41819 |
| Reporter | LLVM Bugzilla Contributor |
| CC | @zmodem,@jkorous-apple,@zygoloid |
Extended Description
IN_EXCL_UNLINK is supported by this kernel (3.0.101-108.77-default) but the symbol's not provided.
SLES11 has glibc-devel-2.11.3-17.110.19.2
9.0 rc1 clang build fails like so:
/local/mnt/workspace/bcain_0721/llvm/utils/release/rc1/llvm.src/tools/clang/lib/DirectoryWatcher /linux/DirectoryWatcher-linux.cpp:339:9: error: use of undeclared identifier 'IN_EXCL_UNLINK' | IN_EXCL_UNLINK
Should be fixed by 57f4bacf65a.
I just replaced the kernel version check by #ifdef IN_EXCL_UNLINK.
Thanks! Merged to release_90 in r367995.
Should be fixed by 57f4bacf65a.
I just replaced the kernel version check by #ifdef IN_EXCL_UNLINK.
Ping?
+jkorous
Needs more #ifdef?