aboutsummaryrefslogtreecommitdiff
path: root/profiling/common/src/NetworkSockets.cpp
diff options
context:
space:
mode:
authorFinn Williams <Finn.Williams@arm.com>2020-05-22 14:28:15 +0100
committerJan Eilers <jan.eilers@arm.com>2020-05-25 14:27:18 +0100
commit68d827f1e433664c05fe03b91891b268b012a708 (patch)
tree82a3dd8f3d5008d50986f470ba9cb0e5788ee8a9 /profiling/common/src/NetworkSockets.cpp
parentb2ce3de2817da91b3c5d3afe9ca86a62310f9449 (diff)
downloadarmnn-68d827f1e433664c05fe03b91891b268b012a708.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/common/src/NetworkSockets.cpp')
-rw-r--r--profiling/common/src/NetworkSockets.cpp8
1 files changed, 5 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