Commit 12458a23 authored by Sean McGovern's avatar Sean McGovern Committed by Fiona Glaser

Solaris: use sysconf to get processor count

Solaris responds correctly to the same value as Cygwin, so let's use that.
parent 0db80bee
......@@ -402,7 +402,7 @@ int x264_cpu_num_processors( void )
#elif SYS_WINDOWS
return x264_pthread_num_processors_np();
#elif SYS_CYGWIN
#elif SYS_CYGWIN || SYS_SunOS
return sysconf( _SC_NPROCESSORS_ONLN );
#elif SYS_LINUX
......
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