[libdispatch-dev] Solaris portability, online CPU count detection - PATCH [3/6]

Paolo Bonzini bonzini at gnu.org
Fri Nov 6 10:57:44 PST 2009

On 11/06/2009 04:01 PM, Joakim Johansson wrote:
> +#elif defined (__SVR4) && defined (__sun)

Please use #elif defined _SC_NPROCESSORS_ONLN instead so it's picked up 
by Linux as well.

Maybe, even better, add sysconf to the functions that are checked in 
configure and use

#elif defined HAVE_SYSCONF && defined _SC_NPROCESSORS_ONLN



More information about the libdispatch-dev mailing list