diff --git a/src/cpuset.c b/src/cpuset.c index 46e572dab7..c1632c5e46 100644 --- a/src/cpuset.c +++ b/src/cpuset.c @@ -110,12 +110,9 @@ void ha_cpuset_assign(struct hap_cpuset *dst, const struct hap_cpuset *src) int ha_cpuset_size() { -#if defined(CPUSET_USE_CPUSET) +#if defined(CPUSET_USE_CPUSET) || defined(CPUSET_USE_FREEBSD_CPUSET) return CPU_SETSIZE; -#elif defined(CPUSET_USE_FREEBSD_CPUSET) - return MAXCPU; - #elif defined(CPUSET_USE_ULONG) return LONGBITS;