Index: libcxx/src/filesystem/operations.cpp =================================================================== --- libcxx/src/filesystem/operations.cpp +++ libcxx/src/filesystem/operations.cpp @@ -1348,7 +1348,7 @@ // // 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