From 60d9e9fc19291ce72458f41cd7c4679e26251084 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 3 Oct 2014 05:04:59 +0000 Subject: runtime: Check for CPU_COUNT itself, don't check glibc version. Fixes issue 38. From-SVN: r215832 --- libgo/runtime/getncpu-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 // 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; -- cgit v1.1