diff --git a/libcxx/src/filesystem/operations.cpp b/libcxx/src/filesystem/operations.cpp --- a/libcxx/src/filesystem/operations.cpp +++ b/libcxx/src/filesystem/operations.cpp @@ -541,7 +541,11 @@ return err.report(capture_errno()); return {hold.get()}; #else - char buff[PATH_MAX + 1]; + #if defined(__MVS__) + char buff[1024 + 1]; + #else + char buff[PATH_MAX + 1]; + #endif char* ret; if ((ret = ::realpath(p.c_str(), buff)) == nullptr) return err.report(capture_errno());