diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-10-03 05:04:59 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-10-03 05:04:59 +0000 |
commit | 60d9e9fc19291ce72458f41cd7c4679e26251084 (patch) | |
tree | 6061ab73c4e7bf4398ee2358b5a8f7956ff33050 /libgo | |
parent | 5d20321177a3ef53a7051e5d7e97d2e89573f2bc (diff) | |
download | gcc-60d9e9fc19291ce72458f41cd7c4679e26251084.zip gcc-60d9e9fc19291ce72458f41cd7c4679e26251084.tar.gz gcc-60d9e9fc19291ce72458f41cd7c4679e26251084.tar.bz2 |
runtime: Check for CPU_COUNT itself, don't check glibc version.
Fixes issue 38.
From-SVN: r215832
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/runtime/getncpu-linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/getncpu-linux.c b/libgo/runtime/getncpu-linux.c index 0122b77..de6606f 100644 --- a/libgo/runtime/getncpu-linux.c +++ b/libgo/runtime/getncpu-linux.c @@ -6,7 +6,7 @@ #include <sched.h> // 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; |