The use of fchmodat() is beeing guarded but its using declaration is not. Let's use the same guard in both places to avoid compiler errors on platforms where fchmodat does not exist.
Details
Details
- Reviewers
ldionne - Group Reviewers
Restricted Project - Commits
- rG25aa0d12445e: [SystemZ][ZOS] Guard using declaration for ::fchmodat
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
My preference would be to extend https://reviews.llvm.org/D90257 to handle those declarations too.
Comment Actions
I like the idea, @ldionne and agree. However, D90257 depends on D90188 and both did not land yet AFAIKS not to mention we will have to wait for the changes to be picked up by the build compiler.
Can we make this change now to unblock the build on z/OS?
We can always remove this change as part of the extension of D90257.
Comment Actions
I'm OK with that direction. But if you ship this, be aware that I'm going to remove your workaround when I ship the _LIBCPP_USING_IF_EXISTS patch, and that means you'll have to use a Clang that implements the attribute to get your build working. Are you OK with that?