From: Sean McGovern Date: Fri, 23 Nov 2012 02:01:16 +0000 (-0800) Subject: Solaris: use sysconf to get processor count X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=67a69c06d7bd7907b5d1e058a26284c06baa93d1;p=x264.git Solaris: use sysconf to get processor count Solaris responds correctly to the same value as Cygwin, so let's use that. --- diff --git a/common/cpu.c b/common/cpu.c index 3cae6f84..2ec30840 100644 --- a/common/cpu.c +++ b/common/cpu.c @@ -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