[libcxx-commits] [libcxx] 62705ee - [SystemZ][z/OS] Define _LIBCPP_ELAST
Muiez Ahmed via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Mar 15 06:25:49 PDT 2021
Author: Muiez Ahmed
Date: 2021-03-15T09:23:36-04:00
New Revision: 62705ee012578584b83e94a2dc9788c332f53a66
URL: https://github.com/llvm/llvm-project/commit/62705ee012578584b83e94a2dc9788c332f53a66
DIFF: https://github.com/llvm/llvm-project/commit/62705ee012578584b83e94a2dc9788c332f53a66.diff
LOG: [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
Added:
Modified:
libcxx/src/include/config_elast.h
Removed:
################################################################################
diff --git a/libcxx/src/include/config_elast.h b/libcxx/src/include/config_elast.h
index 3113f9fb5cd1..366292b1939a 100644
--- 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
More information about the libcxx-commits
mailing list