You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
423 B

diff --git a/src/util.cc b/src/util.cc
index 84de879..0ac9ec7 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -585,7 +585,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(__ANDROID__)
double GetLoadAverage() {
struct sysinfo si;
if (sysinfo(&si) != 0)