aboutsummaryrefslogtreecommitdiff
path: root/libcxx/src/filesystem/operations.cpp
diff options
context:
space:
mode:
authorMuiez Ahmed <muiez@ibm.com>2022-09-16 10:22:21 -0400
committerMuiez Ahmed <muiez@ibm.com>2022-09-16 10:22:21 -0400
commit1b445cada51e247116ef934c3394bcc6f22589f7 (patch)
tree64d80e20bdeced44889ba611f8af6c738ea0a092 /libcxx/src/filesystem/operations.cpp
parentc632ee1c5d658c77601ab4a44c83fe5c548e7570 (diff)
downloadllvm-1b445cada51e247116ef934c3394bcc6f22589f7.zip
llvm-1b445cada51e247116ef934c3394bcc6f22589f7.tar.gz
llvm-1b445cada51e247116ef934c3394bcc6f22589f7.tar.bz2
[SystemZ][z/OS] define REMOVE_ALL_USE_DIRECTORY_ITERATOR (libc++)
This patch fixes the z/OS build by using the first implementation of __remove_all since we don't have access to the openat() family of POSIX functions. Differential Revision: https://reviews.llvm.org/D132948
Diffstat (limited to 'libcxx/src/filesystem/operations.cpp')
-rw-r--r--libcxx/src/filesystem/operations.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/filesystem/operations.cpp b/libcxx/src/filesystem/operations.cpp
index 7467abb..61c643cb 100644
--- a/libcxx/src/filesystem/operations.cpp
+++ b/libcxx/src/filesystem/operations.cpp
@@ -1348,7 +1348,7 @@ bool __remove(const path& p, error_code* ec) {
//
// The second implementation is used on platforms where `openat()` & friends are available,
// and it threads file descriptors through recursive calls to avoid such race conditions.
-#if defined(_LIBCPP_WIN32API)
+#if defined(_LIBCPP_WIN32API) || defined (__MVS__)
# define REMOVE_ALL_USE_DIRECTORY_ITERATOR
#endif