Fix mac build breaks
authorKeith Mok <ek9852@gmail.com>
Sun, 20 Dec 2020 08:05:14 +0000 (00:05 -0800)
committerKeith Mok <ek9852@gmail.com>
Thu, 7 Jan 2021 22:57:38 +0000 (14:57 -0800)
Signed-off-by: Keith Mok <ek9852@gmail.com>
Change-Id: I4b2926342bbf8621f7b7f5695cf1526dd7281bef

src/armnnUtils/Threads.cpp

index 64a8481..e5cf276 100644 (file)
@@ -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
 }