From 67a69c06d7bd7907b5d1e058a26284c06baa93d1 Mon Sep 17 00:00:00 2001 From: Sean McGovern Date: Thu, 22 Nov 2012 18:01:16 -0800 Subject: [PATCH] Solaris: use sysconf to get processor count Solaris responds correctly to the same value as Cygwin, so let's use that. --- common/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3