diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx index 9ac30bc7c7..c679c48ddb 100644 --- a/Source/kwsys/SystemInformation.cxx +++ b/Source/kwsys/SystemInformation.cxx @@ -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;