>       gcc/ada/
>       * adaint.c (__gnat_number_of_cpus): Check for the presence of 
>       _SC_NPROCESSORS_ONLN before using it.
> ---
> NB we could probably replace the list of OS #ifdefs with just a check for 
> _SC_NPROCESSORS_ONLN, making use of it automagically with any new OS that 
> supports it, as from the length of the list has grown up to I gather the 
> `sysconf' API for this variable has become a semi-established standard now 
> even though not actually listed by the relevant standards.

Indeed, so a better patch would be to use

#if defined (_SC_NPROCESSORS_ONLN)

instead as you noted, so let's do that.

Arno

Reply via email to