Hello all,
I think that no one tried it for a long time but I needed a single-threaded git version for debug purpose. I tried to build with -DNO_PTHREADS and thread-utils.c failed to compile.
In brief the situation is the following:
in header file we have something like that:
#ifndef NO_PTHREAD
extern int online_cpus(void);
#else
#define online_cpus() 1
#endif // NO_PTHREAD
and in *.c file:
int online_cpus(void)
{
// ...
}
So the compilation fails with:
test.c:3:21: error: macro "online_cpus" passed 1 arguments, but takes just 0
int online_cpus(void)
That's a tiny issue, but maybe we could apply a straight-forward solution (see attached diff)? If you agree I'll prepare a properly-formatted [PATCH] submit.
--
Best Regards,
Victor