Fix some musl libc issues in armnn
Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: Ifb0295ee4516ca6cbd4364ade418b707fb39b354
diff --git a/profiling/common/src/NetworkSockets.cpp b/profiling/common/src/NetworkSockets.cpp
index 1e1f701..b41cbac 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 @@
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