Fix issue for BSD

This commit is contained in:
Patrick Pelissier committed 2018-01-12 20:11:11 +01:00
1 parent 9d727589aa
commit 6549bea3e0
1 file changed
+1 -1
+1 -1
View File
@@ -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