diff options
| author | 2016-03-29 14:33:32 -0700 | |
|---|---|---|
| committer | 2016-03-29 14:33:32 -0700 | |
| commit | 64815a8b1609e874d5e3f403c93c8456bd4a9ccb (patch) | |
| tree | e7e9c9917946a1b927f1f2fe9858a80c90e21a36 /src | |
| parent | Compiling on Windows now (diff) | |
| download | yuzu-64815a8b1609e874d5e3f403c93c8456bd4a9ccb.tar.gz yuzu-64815a8b1609e874d5e3f403c93c8456bd4a9ccb.tar.xz yuzu-64815a8b1609e874d5e3f403c93c8456bd4a9ccb.zip | |
But of course, Windows uses 'int' while Linux uses 'socklen_t'
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/soc_u.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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) { | |||
| 729 | u32 socket_handle = cmd_buffer[1]; | 729 | u32 socket_handle = cmd_buffer[1]; |
| 730 | u32 level = cmd_buffer[2]; | 730 | u32 level = cmd_buffer[2]; |
| 731 | u32 optname = cmd_buffer[3]; | 731 | u32 optname = cmd_buffer[3]; |
| 732 | #ifdef _WIN32 | ||
| 732 | int optlen = (int)cmd_buffer[4]; | 733 | int optlen = (int)cmd_buffer[4]; |
| 734 | #else | ||
| 735 | socklen_t optlen = (socklen_t)cmd_buffer[4]; | ||
| 736 | #endif | ||
| 733 | 737 | ||
| 734 | // 0x100 = static buffer offset (bytes) | 738 | // 0x100 = static buffer offset (bytes) |
| 735 | // + 0x4 = 2nd pointer (u32) position | 739 | // + 0x4 = 2nd pointer (u32) position |