diff options
| author | 2020-02-19 16:16:49 -0800 | |
|---|---|---|
| committer | 2020-02-19 16:16:49 -0800 | |
| commit | d31156931dccf00fba15c789185796fd3f8dc006 (patch) | |
| tree | 5992c9d741e0e7439e6fc5ffd55e3dbe5a7e4ca5 | |
| parent | httplib compatibility (diff) | |
| download | yuzu-d31156931dccf00fba15c789185796fd3f8dc006.tar.gz yuzu-d31156931dccf00fba15c789185796fd3f8dc006.tar.xz yuzu-d31156931dccf00fba15c789185796fd3f8dc006.zip | |
fix issue with windows getnameinfo()
| -rw-r--r-- | externals/httplib/httplib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/externals/httplib/httplib.h b/externals/httplib/httplib.h index a554b8619..e03842e6d 100644 --- a/externals/httplib/httplib.h +++ b/externals/httplib/httplib.h | |||
| @@ -1545,7 +1545,7 @@ inline std::string get_remote_addr(socket_t sock) { | |||
| 1545 | std::array<char, NI_MAXHOST> ipstr{}; | 1545 | std::array<char, NI_MAXHOST> ipstr{}; |
| 1546 | 1546 | ||
| 1547 | if (!getnameinfo(reinterpret_cast<struct sockaddr *>(&addr), len, | 1547 | if (!getnameinfo(reinterpret_cast<struct sockaddr *>(&addr), len, |
| 1548 | ipstr.data(), ipstr.size(), nullptr, 0, NI_NUMERICHOST)) { | 1548 | ipstr.data(), static_cast<unsigned int>(ipstr.size()), nullptr, 0, NI_NUMERICHOST)) { |
| 1549 | return ipstr.data(); | 1549 | return ipstr.data(); |
| 1550 | } | 1550 | } |
| 1551 | } | 1551 | } |