Compilation error when HAVE_SETAFFINITY is disabled
When I disable affinity by commenting out #define HAVE_SETAFFINITY 1
in config.h
I get the following compiler errors:
engine.c(3298): error: identifier "nr_affinity_cores" is undefined
for (int i = 0; i < nr_affinity_cores; i++) printf("%i ", cpuid[i]);
^
engine.c(3298): error: identifier "cpuid" is undefined
for (int i = 0; i < nr_affinity_cores; i++) printf("%i ", cpuid[i]);