From: Ian Lance Taylor Date: Fri, 3 Oct 2014 05:04:59 +0000 (+0000) Subject: runtime: Check for CPU_COUNT itself, don't check glibc version. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60d9e9fc19291ce72458f41cd7c4679e26251084;p=gcc.git runtime: Check for CPU_COUNT itself, don't check glibc version. Fixes issue 38. From-SVN: r215832 --- diff --git a/libgo/runtime/getncpu-linux.c b/libgo/runtime/getncpu-linux.c index 0122b77c9ff..de6606ff47c 100644 --- a/libgo/runtime/getncpu-linux.c +++ b/libgo/runtime/getncpu-linux.c @@ -6,7 +6,7 @@ #include // CPU_COUNT is only provided by glibc 2.6 or higher -#if !defined(__GLIBC_PREREQ) || !__GLIBC_PREREQ(2, 6) +#ifndef CPU_COUNT #define CPU_COUNT(set) _CPU_COUNT((unsigned int *)(set), sizeof(*(set))/sizeof(unsigned int)) static int _CPU_COUNT(unsigned int *set, size_t len) { int cnt;