Skip to content

Commit 4d84e6e

Browse files
committed
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;"
1 parent 8f4251f commit 4d84e6e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/ts/src/ts_perf.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ static bool log_power_checkpoints;
4141

4242
#include <sys/syscall.h>
4343
#include <pthread.h>
44+
#include <cerrno>
4445
static void setCurrentThreadAffinityMask(int mask)
4546
{
4647
pid_t pid=gettid();

0 commit comments

Comments
 (0)