The external affinity detection implemented by
a6e1181 uses CPU_COUNT
from sched.h for a consistency check, but this macro is only available
with glibc 2.6 and later. Hence, a check for this macro was needed to
avoid issues with glibc <2.6
Change-Id: I6088972e9a5aabefb2b3fa3b38ac8d4ba32662f7
}
/* Before proceeding with the actual check, make sure that the number of
- * detected CPUs is >= the CPUs in the current set. */
+ * detected CPUs is >= the CPUs in the current set.
+ * We need to check for CPU_COUNT as it was added only in glibc 2.6. */
+#ifdef CPU_COUNT
if (ncpus < CPU_COUNT(&mask_current))
{
if (debug)
}
return;
}
+#endif /* CPU_COUNT */
bAllSet = TRUE;
for (i = 0; (i < ncpus && i < CPU_SETSIZE); i++)