From 003d1f1f849cbb8b2f3be8146ec19ae8b3a96573 Mon Sep 17 00:00:00 2001 From: pooler Date: Sat, 2 Jun 2012 14:53:54 +0200 Subject: [PATCH] Use _SC_NPROCESSORS_CONF instead of _SC_NPROCESSORS_ONLN --- cpu-miner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu-miner.c b/cpu-miner.c index 6bacef7..93e871d 100644 --- a/cpu-miner.c +++ b/cpu-miner.c @@ -998,8 +998,8 @@ int main(int argc, char *argv[]) SYSTEM_INFO sysinfo; GetSystemInfo(&sysinfo); num_processors = sysinfo.dwNumberOfProcessors; -#elif defined(_SC_NPROCESSORS_ONLN) - num_processors = sysconf(_SC_NPROCESSORS_ONLN); +#elif defined(_SC_NPROCESSORS_CONF) + num_processors = sysconf(_SC_NPROCESSORS_CONF); #elif defined(HW_NCPU) int req[] = { CTL_HW, HW_NCPU }; size_t len = sizeof(num_processors);