aboutsummaryrefslogtreecommitdiff
path: root/profiling
diff options
context:
space:
mode:
authorFinn Williams <Finn.Williams@arm.com>2020-05-22 14:28:15 +0100
committerKevin May <kevin.may@arm.com>2020-05-25 07:40:33 +0000
commitbadcc3f56dcd3627d8efc2678e5ad5449225fcb9 (patch)
treed2ec7547909eb0e11f79bcfebb8d8fe45828d150 /profiling
parent0a336dce464a822bbd9563b5dc021a37c6671515 (diff)
downloadarmnn-badcc3f56dcd3627d8efc2678e5ad5449225fcb9.tar.gz
Fix some musl libc issues in armnn
Signed-off-by: Finn Williams <Finn.Williams@arm.com> Change-Id: Ifb0295ee4516ca6cbd4364ade418b707fb39b354
Diffstat (limited to 'profiling')
-rw-r--r--profiling/common/src/NetworkSockets.cpp8
-rw-r--r--profiling/server/src/basePipeServer/BasePipeServer.cpp1
-rw-r--r--profiling/server/src/basePipeServer/ConnectionHandler.cpp2
3 files changed, 8 insertions, 3 deletions
diff --git a/profiling/common/src/NetworkSockets.cpp b/profiling/common/src/NetworkSockets.cpp
index 1e1f70112d..b41cbac43d 100644
--- a/profiling/common/src/NetworkSockets.cpp
+++ b/profiling/common/src/NetworkSockets.cpp
@@ -8,6 +8,8 @@
#if defined(__unix__)
#include <unistd.h>
#include <fcntl.h>
+#include <armnn/Conversion.hpp>
+
#endif
namespace armnnUtils
@@ -68,10 +70,10 @@ long Read(Socket s, void* buf, size_t len)
int Ioctl(Socket s, unsigned long int cmd, void* arg)
{
-#if defined(__ANDROID__)
+#if defined(__unix__)
+ ARMNN_NO_CONVERSION_WARN_BEGIN
return ioctl(s, static_cast<int>(cmd), arg);
-#elif defined(__unix__)
- return ioctl(s, cmd, arg);
+ ARMNN_NO_CONVERSION_WARN_END
#elif defined(_MSC_VER)
return ioctlsocket(s, cmd, static_cast<u_long*>(arg));
#endif
diff --git a/profiling/server/src/basePipeServer/BasePipeServer.cpp b/profiling/server/src/basePipeServer/BasePipeServer.cpp
index 7e8789aa2a..ed5c442492 100644
--- a/profiling/server/src/basePipeServer/BasePipeServer.cpp
+++ b/profiling/server/src/basePipeServer/BasePipeServer.cpp
@@ -11,6 +11,7 @@
#include <boost/cast.hpp>
#include <vector>
#include <iomanip>
+#include <string.h>
using namespace armnnUtils;
diff --git a/profiling/server/src/basePipeServer/ConnectionHandler.cpp b/profiling/server/src/basePipeServer/ConnectionHandler.cpp
index 69ccd01050..1485ab8620 100644
--- a/profiling/server/src/basePipeServer/ConnectionHandler.cpp
+++ b/profiling/server/src/basePipeServer/ConnectionHandler.cpp
@@ -4,6 +4,8 @@
//
#include "ConnectionHandler.hpp"
+#include <string.h>
+
using namespace armnnUtils;
namespace armnnProfiling