projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e82a30b
)
[SystemZ][z/OS] Define _LIBCPP_ELAST
author
Muiez Ahmed
<muiez@ibm.com>
Mon, 15 Mar 2021 13:23:36 +0000
(09:23 -0400)
committer
Muiez Ahmed
<muiez@ibm.com>
Mon, 15 Mar 2021 13:23:36 +0000
(09:23 -0400)
The aim is to define _LIBCPP_ELAST for z/OS libc++ since strerror/strerror_r can't handle out-of-range errno values.
Differential Revision: https://reviews.llvm.org/D98541
libcxx/src/include/config_elast.h
patch
|
blob
|
history
diff --git
a/libcxx/src/include/config_elast.h
b/libcxx/src/include/config_elast.h
index
3113f9f
..
366292b
100644
(file)
--- a/
libcxx/src/include/config_elast.h
+++ b/
libcxx/src/include/config_elast.h
@@
-35,6
+35,8
@@
// No _LIBCPP_ELAST needed on Apple
#elif defined(__sun__)
#define _LIBCPP_ELAST ESTALE
+#elif defined(__MVS__)
+#define _LIBCPP_ELAST 1160
#elif defined(_LIBCPP_MSVCRT_LIKE)
#define _LIBCPP_ELAST (_sys_nerr - 1)
#else