From 4d84e6efee0d4cc0e259647df57ae5414c342816 Mon Sep 17 00:00:00 2001 From: Declan Moran Date: Mon, 14 Nov 2016 17:21:53 +0100 Subject: [PATCH] fix compiler error when building with gnu-5 toolchain (eg as currently shipped with crystax.org android ndk, and presumably soon with android studio). "ts_perf.cpp ....error: 'errno' was not declared in this scope int err=errno;" --- modules/ts/src/ts_perf.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ts/src/ts_perf.cpp b/modules/ts/src/ts_perf.cpp index 3bcb5c11a9..360c8b5a13 100644 --- a/modules/ts/src/ts_perf.cpp +++ b/modules/ts/src/ts_perf.cpp @@ -41,6 +41,7 @@ static bool log_power_checkpoints; #include #include +#include static void setCurrentThreadAffinityMask(int mask) { pid_t pid=gettid();