summaryrefslogtreecommitdiff
path: root/src/input_common/udp
diff options
context:
space:
mode:
authorGravatar FearlessTobi2020-03-17 12:29:25 +0100
committerGravatar FearlessTobi2020-03-17 12:29:25 +0100
commit230ac6a4e8e96558d41ff18352fdc8cb1b3a593f (patch)
tree8480b3c31dd6c69058844a3013187b7e0b1b1a8e /src/input_common/udp
parentMerge pull request #3521 from ReinUsesLisp/nsight-debug (diff)
downloadyuzu-230ac6a4e8e96558d41ff18352fdc8cb1b3a593f.tar.gz
yuzu-230ac6a4e8e96558d41ff18352fdc8cb1b3a593f.tar.xz
yuzu-230ac6a4e8e96558d41ff18352fdc8cb1b3a593f.zip
input_common/udp: Fix Linux build by using a backwards compatible way of error checking
Should fix https://github.com/yuzu-emu/yuzu/issues/3487. error_code::failed is a function which has been introduced in Boost 1.69. This version of boost hasn't landed in most major distros yet.
Diffstat (limited to 'src/input_common/udp')
-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:
35 pad_index(pad_index) { 35 pad_index(pad_index) {
36 boost::system::error_code ec{}; 36 boost::system::error_code ec{};
37 auto ipv4 = boost::asio::ip::make_address_v4(host, ec); 37 auto ipv4 = boost::asio::ip::make_address_v4(host, ec);
38 if (ec.failed()) { 38 if (ec.value() != boost::system::errc::success) {
39 LOG_ERROR(Input, "Invalid IPv4 address \"{}\" provided to socket", host); 39 LOG_ERROR(Input, "Invalid IPv4 address \"{}\" provided to socket", host);
40 ipv4 = boost::asio::ip::address_v4{}; 40 ipv4 = boost::asio::ip::address_v4{};
41 } 41 }