forked from OSchip/llvm-project
[SystemZ][z/OS] Define _LIBCPP_ELAST
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
This commit is contained in:
parent
e82a30bdce
commit
62705ee012
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue