[libcxx-commits] [libcxx] 4677d79 - [libc++][AIX] Define	_LIBCPP_ELAST
    via libcxx-commits 
    libcxx-commits at lists.llvm.org
       
    Mon May 10 06:54:45 PDT 2021
    
    
  
Author: jasonliu
Date: 2021-05-10T13:54:30Z
New Revision: 4677d795b2042e783952fdcdaefaf2ca6bfb72a6
URL: https://github.com/llvm/llvm-project/commit/4677d795b2042e783952fdcdaefaf2ca6bfb72a6
DIFF: https://github.com/llvm/llvm-project/commit/4677d795b2042e783952fdcdaefaf2ca6bfb72a6.diff
LOG: [libc++][AIX] Define _LIBCPP_ELAST
The aim is to define _LIBCPP_ELAST for AIX since strerror/strerror_r
can't handle out-of-range errno values.
Differential Revision: https://reviews.llvm.org/D100986
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 366292b1939a..7880c733fb85 100644
--- a/libcxx/src/include/config_elast.h
+++ b/libcxx/src/include/config_elast.h
@@ -39,6 +39,8 @@
 #define _LIBCPP_ELAST 1160
 #elif defined(_LIBCPP_MSVCRT_LIKE)
 #define _LIBCPP_ELAST (_sys_nerr - 1)
+#elif defined(_AIX)
+#define _LIBCPP_ELAST 127
 #else
 // Warn here so that the person doing the libcxx port has an easier time:
 #warning ELAST for this platform not yet implemented
        
    
    
More information about the libcxx-commits
mailing list