Commit 280bf9eb authored by Ken Martin's avatar Ken Martin
Browse files

linux build problem

parent 98669e65
......@@ -77,7 +77,11 @@ vtkMultiThreader::vtkMultiThreader()
#ifdef VTK_USE_PTHREADS
// Default the number of threads to be the number of available
// processors if we are using pthreads()
#ifdef _SC_NPROCESSORS_ONLN
this->NumberOfThreads = sysconf( _SC_NPROCESSORS_ONLN );
#else
this->NumberOfThreads = 1;
#endif
#endif
#ifdef _WIN32
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment