diff options
author | 2021-01-02 21:18:29 +0000 | |
---|---|---|
committer | 2021-01-02 21:18:29 +0000 | |
commit | b0c4c9021820e9376f765e9d6544553af4f4f59a (patch) | |
tree | 8c3ec187ee43b065d14feed072851ad11885476f /gnu/llvm/libcxx/src/thread.cpp | |
parent | Adjust link path for libc++ to find libc++abi to match change of Makefile (diff) | |
download | wireguard-openbsd-b0c4c9021820e9376f765e9d6544553af4f4f59a.tar.xz wireguard-openbsd-b0c4c9021820e9376f765e9d6544553af4f4f59a.zip |
Re-apply our libc++ 8.0.0 patches to libc++ 10.0.1.
Diffstat (limited to 'gnu/llvm/libcxx/src/thread.cpp')
-rw-r--r-- | gnu/llvm/libcxx/src/thread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/llvm/libcxx/src/thread.cpp b/gnu/llvm/libcxx/src/thread.cpp index c0bc1cbbbbc..1f4ad71042b 100644 --- a/gnu/llvm/libcxx/src/thread.cpp +++ b/gnu/llvm/libcxx/src/thread.cpp @@ -80,9 +80,9 @@ thread::detach() unsigned thread::hardware_concurrency() _NOEXCEPT { -#if defined(CTL_HW) && defined(HW_NCPU) +#if defined(CTL_HW) && defined(HW_NCPUONLINE) unsigned n; - int mib[2] = {CTL_HW, HW_NCPU}; + int mib[2] = {CTL_HW, HW_NCPUONLINE}; std::size_t s = sizeof(n); sysctl(mib, 2, &n, &s, 0, 0); return n; |