[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
This commit is contained in:
Zbigniew Sarbinowski 2021-02-18 14:49:46 +00:00
parent 3b34b06fc5
commit 25aa0d1244
1 changed files with 2 additions and 0 deletions

View File

@ -487,7 +487,9 @@ int symlink_dir(const char *oldname, const char *newname) {
using ::chdir;
using ::close;
using ::fchmod;
#if defined(AT_SYMLINK_NOFOLLOW) && defined(AT_FDCWD)
using ::fchmodat;
#endif
using ::fstat;
using ::ftruncate;
using ::getcwd;