aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Mok <ek9852@gmail.com>2020-12-20 00:05:14 -0800
committerKeith Mok <ek9852@gmail.com>2021-01-07 14:57:38 -0800
commita20b3129aa1c450ccf867c7b63844e8391753730 (patch)
treece9bbb11af8ed6d2e2e7b581b6d59269e99f6eaf
parent4a3db79fd5f3559ce409e4fb6a3ade9a3e6b949c (diff)
downloadarmnn-a20b3129aa1c450ccf867c7b63844e8391753730.tar.gz
Fix mac build breaks
Signed-off-by: Keith Mok <ek9852@gmail.com> Change-Id: I4b2926342bbf8621f7b7f5695cf1526dd7281bef
-rw-r--r--src/armnnUtils/Threads.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/armnnUtils/Threads.cpp b/src/armnnUtils/Threads.cpp
index 64a84812d2..e5cf27622c 100644
--- a/src/armnnUtils/Threads.cpp
+++ b/src/armnnUtils/Threads.cpp
@@ -13,6 +13,7 @@
#include <common/include/WindowsWrapper.hpp>
#elif defined(__APPLE__)
#include "AvailabilityMacros.h"
+#include <pthread.h>
#include <sys/syscall.h>
#include <sys/time.h>
#include <unistd.h>
@@ -36,7 +37,7 @@ int GetCurrentThreadId()
{
return 0;
}
- return threadId;
+ return static_cast<int>(threadId);
#endif
}