diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-03 05:04:59 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-03 05:04:59 +0000 |
commit | 73f46f88d1ad13e19c8b754746c0bdd8a0d02645 (patch) | |
tree | 6061ab73c4e7bf4398ee2358b5a8f7956ff33050 /libgo | |
parent | e8038c3253792df1db55ba0c4c84cdd826eecc8d (diff) | |
download | gcc-73f46f88d1ad13e19c8b754746c0bdd8a0d02645.tar.gz |
runtime: Check for CPU_COUNT itself, don't check glibc version.
Fixes issue 38.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215832 138bc75d-0d04-0410-961f-82ee72b054a4
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 0122b77c9ff..de6606ff47c 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; |