mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-19 21:50:39 -06:00
KWSys 2025-02-10 (2e2f80f1)
Code extracted from:
https://gitlab.kitware.com/utils/kwsys.git
at commit 2e2f80f1d074b1f888ff41f5bc5a2229f3eab6a0 (master).
Upstream Shortlog
-----------------
Brad Smith (1):
a13d90c2 SystemInformation: use HW_NCPUONLINE on OpenBSD and NetBSD
This commit is contained in:
committed by
Brad King
parent
1a8650a908
commit
c4206da3f7
@@ -5131,7 +5131,11 @@ bool SystemInformationImplementation::QueryBSDProcessor()
|
||||
defined(__DragonFly__)
|
||||
int k;
|
||||
size_t sz = sizeof(k);
|
||||
# ifdef HW_NCPUONLINE
|
||||
int ctrl[2] = { CTL_HW, HW_NCPUONLINE };
|
||||
# else
|
||||
int ctrl[2] = { CTL_HW, HW_NCPU };
|
||||
# endif
|
||||
|
||||
if (sysctl(ctrl, 2, &k, &sz, nullptr, 0) != 0) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user