diff options
| author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-03 05:04:47 +0000 |
|---|---|---|
| committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-03 05:04:47 +0000 |
| commit | f2a141287ffa531ad79f348bdad3bdb4bcab160f (patch) | |
| tree | c74d4a791f14b7e7426fd2efec5060074b1a3e20 /libgo/runtime | |
| parent | 98dd33b96996c50695ead4cb6fac07a67caec903 (diff) | |
| download | ppe42-gcc-f2a141287ffa531ad79f348bdad3bdb4bcab160f.tar.gz ppe42-gcc-f2a141287ffa531ad79f348bdad3bdb4bcab160f.zip | |
runtime: Check for CPU_COUNT itself, don't check glibc version.
Fixes issue 38.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@215831 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/runtime')
| -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; |

