[SystemZ][ZOS] Guard using declaration for ::fchmodat
authorZbigniew Sarbinowski <zibi@ca.ibm.com>
Thu, 18 Feb 2021 14:49:46 +0000 (14:49 +0000)
committerZbigniew Sarbinowski <zibi@ca.ibm.com>
Thu, 18 Feb 2021 15:01:04 +0000 (15:01 +0000)
commit25aa0d12445eed6e278489546d18fcb7a33cfaa6
tree35f5337f89b4ac6696b219bd547ffb92c9132bc9
parent3b34b06fc5908b4f7dc720c0655d5756bd8e2a28
[SystemZ][ZOS] Guard using declaration for ::fchmodat

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.

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D96303
libcxx/src/filesystem/posix_compat.h