mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-11 23:43:58 +03: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:
1 parent
1a8650a908
commit
c4206da3f7
1 file changed
+4
@@ -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