Re: [PATCH] PR58669: does not detect all cpu cores/threads
Tom Tromey <[email protected]> Thu, 17 Oct 2013 20:27:20 -0600
| Newsgroups | gmane.comp.gcc.java.patches,gmane.comp.gcc.patches |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "Andrew" == Andrew <[email protected]> writes: Andrew> +#ifdef HAVE_UNISTD_H Andrew> + procs = sysconf(_SC_NPROCESSORS_ONLN); Andrew> +#endif Space before the "(". Technically you should probably check for sysconf in configure.ac. I'm not sure whether it matters any more. I think _SC_NPROCESSORS_ONLN is not portable though. Tom