[libcxx-commits] [PATCH] D92110: [SystemZ][ZOS] Provide PATH_MAX macro for libcxx
Zibi Sarbino via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jan 14 18:15:53 PST 2021
zibi updated this revision to Diff 316822.
zibi added a comment.
rebase and resubmit to fix the build
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92110/new/
https://reviews.llvm.org/D92110
Files:
libcxx/src/filesystem/operations.cpp
Index: libcxx/src/filesystem/operations.cpp
===================================================================
--- libcxx/src/filesystem/operations.cpp
+++ libcxx/src/filesystem/operations.cpp
@@ -634,7 +634,11 @@
return err.report(capture_errno());
return {hold.get()};
#else
- char buff[PATH_MAX + 1];
+ #if defined(__MVS__) && !defined(PATH_MAX)
+ char buff[ _XOPEN_PATH_MAX + 1 ];
+ #else
+ char buff[PATH_MAX + 1];
+ #endif
char* ret;
if ((ret = ::realpath(p.c_str(), buff)) == nullptr)
return err.report(capture_errno());
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92110.316822.patch
Type: text/x-patch
Size: 559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210115/f36a29ba/attachment.bin>
More information about the libcxx-commits
mailing list