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;"
This commit is contained in:
Declan Moran 2016-11-14 17:21:53 +01:00
parent 8f4251fbfa
commit 4d84e6efee

View File

@ -41,6 +41,7 @@ static bool log_power_checkpoints;
#include <sys/syscall.h>
#include <pthread.h>
#include <cerrno>
static void setCurrentThreadAffinityMask(int mask)
{
pid_t pid=gettid();