From 0831472ca40520091b3743b81b605bec6482d725 Mon Sep 17 00:00:00 2001 From: Azaezel Date: Mon, 26 Dec 2016 14:19:53 -0600 Subject: [PATCH] looks like getsockname needs a slightly different signature on the crossplatform end --- Engine/source/platform/platformNet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Engine/source/platform/platformNet.cpp b/Engine/source/platform/platformNet.cpp index e1ab88f09a..4d5b6ca18e 100644 --- a/Engine/source/platform/platformNet.cpp +++ b/Engine/source/platform/platformNet.cpp @@ -368,7 +368,7 @@ namespace PlatformNetState if (requiredFamily == AF_INET) { sockaddr_in ipAddr; - int len = sizeof(ipAddr); + socklen_t len = sizeof(ipAddr); if (getsockname(socketFd, (struct sockaddr*)&ipAddr, &len) >= 0) { IPSocketToNetAddress(&ipAddr, outAddress); @@ -382,7 +382,7 @@ namespace PlatformNetState else if (requiredFamily == AF_INET6) { sockaddr_in6 ipAddr; - int len = sizeof(ipAddr); + socklen_t len = sizeof(ipAddr); if (getsockname(socketFd, (struct sockaddr*)&ipAddr, &len) >= 0) { IPSocket6ToNetAddress(&ipAddr, outAddress);