nanos_omp.h includes sched.h without _GNU_SOURCE defined
And then, this code fails at compile:
#define _GNU_SOURCE
#include <sched.h>
int main()
{
cpu_set_t cpu_set;
sched_getaffinity( 0, sizeof(cpu_set_t), &cpu_set );
}
sched_getaffinity needs _GNU_SOURCE defined before including sched.h, but the automatic inclusion of nanos_omp.h prevents this.
a workaround is to compile with:
$ mcc source.c -D_GNU_SOURCE
source.c: warning: "_GNU_SOURCE" redefined