[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
Sat Jan 23 16:30:17 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG92bb81aac1f1: [SystemZ][ZOS] Provide PATH_MAX macro for libcxx (authored by zibi).
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.318796.patch
Type: text/x-patch
Size: 559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210124/8953ad5d/attachment.bin>
More information about the libcxx-commits
mailing list