Deleted Added
full compact
20a21,24
> // glibc >= 2.9
> #elif defined(TUKLIB_CPUCORES_SCHED_GETAFFINITY)
> # include <sched.h>
>
51a56,60
> #elif defined(TUKLIB_CPUCORES_SCHED_GETAFFINITY)
> cpu_set_t cpu_mask;
> if (sched_getaffinity(0, sizeof(cpu_mask), &cpu_mask) == 0)
> ret = CPU_COUNT(&cpu_mask);
>