diff --git a/tools/quake3/common/threads.c b/tools/quake3/common/threads.c index 1c8e7e75..b50f6d60 100644 --- a/tools/quake3/common/threads.c +++ b/tools/quake3/common/threads.c @@ -434,8 +434,8 @@ void ThreadSetDefault (void) { if (numthreads == -1) // not set manually { -#ifdef _SC_NPROCESSORS_CONF - long cpus = sysconf(_SC_NPROCESSORS_CONF); +#ifdef _SC_NPROCESSORS_ONLN + long cpus = sysconf(_SC_NPROCESSORS_ONLN); if (cpus > 0) numthreads = cpus; else