From 68d827f1e433664c05fe03b91891b268b012a708 Mon Sep 17 00:00:00 2001 From: Finn Williams Date: Fri, 22 May 2020 14:28:15 +0100 Subject: Fix some musl libc issues in armnn Signed-off-by: Finn Williams Change-Id: Ifb0295ee4516ca6cbd4364ade418b707fb39b354 --- profiling/common/src/NetworkSockets.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'profiling/common/src/NetworkSockets.cpp') 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 #include +#include + #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(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(arg)); #endif -- cgit v1.2.1