From 115c654d2745ceed00cabde09fa880029cea1b52 Mon Sep 17 00:00:00 2001 From: joakim-noah Date: Sat, 9 Nov 2019 21:45:34 +0530 Subject: Add Bionic tweak for getloadavg --- src/util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.cc b/src/util.cc index 70096cd..4df2bb2 100644 --- a/src/util.cc +++ b/src/util.cc @@ -576,7 +576,7 @@ double GetLoadAverage() { // Calculation taken from comment in libperfstats.h return double(cpu_stats.loadavg[0]) / double(1 << SBITS); } -#elif defined(__UCLIBC__) +#elif defined(__UCLIBC__) || (defined(__BIONIC__) && __ANDROID_API__ < 29) double GetLoadAverage() { struct sysinfo si; if (sysinfo(&si) != 0) -- cgit v0.12