Fix issue for BSD
This commit is contained in:
1 parent
9d727589aa
commit
6549bea3e0
1 file changed
+1
-1
+1
-1
@@ -145,7 +145,7 @@ workeri_get_cpu_count(void)
|
||||
nm[0] = CTL_HW;
|
||||
nm[1] = HW_NCPU;
|
||||
sysctl(nm, 2, &count, &len, NULL, 0);
|
||||
return MAX(1, count);
|
||||
return M_MAX(1, count);
|
||||
#elif defined (_SC_NPROCESSORS_ONLN)
|
||||
return sysconf(_SC_NPROCESSORS_ONLN);
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user