Forked from
Utils / KWSys
1114 commits behind the upstream repository.
Rolf Eike Beer
authored
Try to open /proc/cpuinfo only on platforms where it's presence is expected, namely Linux and Cygwin. Otherwise try sysconf(_SC_NPROCESSORS_ONLN) as last resort to count processors. Also account for the slightly different name on IRIX. Change-Id: I89eb5e198a6b3a33b581b70d2213096cbac8ca7c