1 https://svn.boost.org/trac/boost/ticket/2053
3 --- a/libs/thread/src/pthread/thread.cpp
4 +++ b/libs/thread/src/pthread/thread.cpp
5 @@ -388,8 +388,6 @@ namespace boost
7 #if defined(PTW32_VERSION) || defined(__hpux)
8 return pthread_num_processors_np();
9 -#elif defined(__linux__)
10 - return get_nprocs();
11 #elif defined(__APPLE__) || defined(__FreeBSD__)
13 size_t size=sizeof(count);
14 @@ -397,6 +395,8 @@ namespace boost
15 #elif defined(BOOST_HAS_UNISTD_H) && defined(_SC_NPROCESSORS_ONLN)
16 int const count=sysconf(_SC_NPROCESSORS_ONLN);
17 return (count>0)?count:0;
18 +#elif defined(__linux__)
19 + return get_nprocs();