[libcxx-commits] [libcxx] [libc++][AIX] Fix force_thread_creation_failure by using RLIMIT_THREADS (PR #188787)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Mar 26 23:08:05 PDT 2026
================
@@ -33,7 +33,12 @@
#if __has_include(<sys/resource.h>)
# include <sys/resource.h>
-# ifdef RLIMIT_NPROC
+# if defined(_AIX) && defined(RLIMIT_THREADS)
----------------
midhuncodes7 wrote:
Use a macro to set the `RLIMIT_*` according to the platform and move the function outside of `#if defined`
https://github.com/llvm/llvm-project/pull/188787
More information about the libcxx-commits
mailing list