From b98032f6a46072fee9a2bfcbe631b8193ced567d Mon Sep 17 00:00:00 2001 From: Rob Hughes Date: Fri, 24 Apr 2020 11:41:34 +0100 Subject: Fix some Windows build errors: * Cast to correct datatype for Winsock API * Replace non-standard u_int32_t * Add missing link dependency of timelineDecoder on armnn * Don't try to link pthread if the platform doesn't have it * Use abstracted Socket type rather than int * Link to WinSock DLL on windows Change-Id: I9ace4af50257ce1e3da92fb4c452f36775dac973 Signed-off-by: Robert Hughes --- profiling/common/src/NetworkSockets.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'profiling/common/src') diff --git a/profiling/common/src/NetworkSockets.cpp b/profiling/common/src/NetworkSockets.cpp index 8ce5f197c1..1e1f70112d 100644 --- a/profiling/common/src/NetworkSockets.cpp +++ b/profiling/common/src/NetworkSockets.cpp @@ -52,7 +52,7 @@ long Write(Socket s, const void* buf, size_t len) #if defined(__unix__) return write(s, buf, len); #elif defined(_MSC_VER) - return send(s, static_cast(buf), len, 0); + return send(s, static_cast(buf), static_cast(len), 0); #endif } @@ -62,7 +62,7 @@ long Read(Socket s, void* buf, size_t len) #if defined(__unix__) return read(s, buf, len); #elif defined(_MSC_VER) - return recv(s, static_cast(buf), len, 0); + return recv(s, static_cast(buf), static_cast(len), 0); #endif } -- cgit v1.2.1