Browse Source

Merge topic 'update-kwsys'

0938643895 Merge branch 'upstream-KWSys' into update-kwsys
c4206da3f7 KWSys 2025-02-10 (2e2f80f1)

Acked-by: Kitware Robot <[email protected]>
Merge-request: !10317
Brad King 9 months ago
parent
commit
2f1dfef868
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Source/kwsys/SystemInformation.cxx

+ 4 - 0
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;