From 64815a8b1609e874d5e3f403c93c8456bd4a9ccb Mon Sep 17 00:00:00 2001 From: Ryan Loebs Date: Tue, 29 Mar 2016 14:33:32 -0700 Subject: But of course, Windows uses 'int' while Linux uses 'socklen_t' --- src/core/hle/service/soc_u.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/hle') diff --git a/src/core/hle/service/soc_u.cpp b/src/core/hle/service/soc_u.cpp index 4606ad743..b7c8eff57 100644 --- a/src/core/hle/service/soc_u.cpp +++ b/src/core/hle/service/soc_u.cpp @@ -729,7 +729,11 @@ static void GetSockOpt(Service::Interface* self) { u32 socket_handle = cmd_buffer[1]; u32 level = cmd_buffer[2]; u32 optname = cmd_buffer[3]; +#ifdef _WIN32 int optlen = (int)cmd_buffer[4]; +#else + socklen_t optlen = (socklen_t)cmd_buffer[4]; +#endif // 0x100 = static buffer offset (bytes) // + 0x4 = 2nd pointer (u32) position -- cgit v1.2.3