summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-03-21 21:04:45 +0100
committerGitHub <noreply@github.com>2020-03-21 21:04:45 +0100
commite70451d967fa3c6f7c36d3b5f6a5f560d95e5038 (patch)
tree4b5758072bfdbcb5a74ae2bcb4c0ad1f03eac6e9
parentMerge pull request #3526 from FearlessTobi/bcat-disable (diff)
parentinput_common/udp: Fix Linux build by using a backwards compatible way of error checking (diff)
downloadyuzu-e70451d967fa3c6f7c36d3b5f6a5f560d95e5038.tar
yuzu-e70451d967fa3c6f7c36d3b5f6a5f560d95e5038.tar.gz
yuzu-e70451d967fa3c6f7c36d3b5f6a5f560d95e5038.tar.bz2
yuzu-e70451d967fa3c6f7c36d3b5f6a5f560d95e5038.tar.lz
yuzu-e70451d967fa3c6f7c36d3b5f6a5f560d95e5038.tar.xz
yuzu-e70451d967fa3c6f7c36d3b5f6a5f560d95e5038.tar.zst
yuzu-e70451d967fa3c6f7c36d3b5f6a5f560d95e5038.zip
-rw-r--r--src/input_common/udp/client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/udp/client.cpp b/src/input_common/udp/client.cpp
index e82ae7ef1..da5227058 100644
--- a/src/input_common/udp/client.cpp
+++ b/src/input_common/udp/client.cpp
@@ -35,7 +35,7 @@ public:
pad_index(pad_index) {
boost::system::error_code ec{};
auto ipv4 = boost::asio::ip::make_address_v4(host, ec);
- if (ec.failed()) {
+ if (ec.value() != boost::system::errc::success) {
LOG_ERROR(Input, "Invalid IPv4 address \"{}\" provided to socket", host);
ipv4 = boost::asio::ip::address_v4{};
}