Message ID | alpine.LFD.2.21.2011201701530.656242@eddie.linux-mips.org |
---|---|
State | Accepted |
Headers | show |
Series | None | expand |
Index: gcc/gcc/ada/adaint.c =================================================================== --- gcc.orig/gcc/ada/adaint.c +++ gcc/gcc/ada/adaint.c @@ -2483,9 +2483,7 @@ __gnat_number_of_cpus (void) { int cores = 1; -#if defined (__linux__) || defined (__sun__) || defined (_AIX) \ - || defined (__APPLE__) || defined (__FreeBSD__) || defined (__OpenBSD__) \ - || defined (__DragonFly__) || defined (__NetBSD__) +#ifdef _SC_NPROCESSORS_ONLN cores = (int) sysconf (_SC_NPROCESSORS_ONLN); #elif defined (__QNX__)