mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 13:47:32 +08:00
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:
parent
8f4251fbfa
commit
4d84e6efee
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user