aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}