summaryrefslogtreecommitdiffstats
path: root/libgo/runtime
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-03 05:04:47 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-03 05:04:47 +0000
commitf2a141287ffa531ad79f348bdad3bdb4bcab160f (patch)
treec74d4a791f14b7e7426fd2efec5060074b1a3e20 /libgo/runtime
parent98dd33b96996c50695ead4cb6fac07a67caec903 (diff)
downloadppe42-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.c2
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;
OpenPOWER on IntegriCloud