From 5c1fa19ac78283435a00c48713864cde6005b5bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 30 Apr 2022 23:04:15 +0200 Subject: Network: explicitly qualify global bind Android build fails otherwise. --- src/network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/network.cpp b/src/network.cpp index 2e3cf3b..fa816bd 100644 --- a/src/network.cpp +++ b/src/network.cpp @@ -252,7 +252,7 @@ Server::Priv::Priv(const Head & local, const Identity & self, sockaddr_in laddr = {}; laddr.sin_family = AF_INET; laddr.sin_port = htons(discoveryPort); - if (bind(sock, (sockaddr *) &laddr, sizeof(laddr)) < 0) + if (::bind(sock, (sockaddr *) &laddr, sizeof(laddr)) < 0) throw std::system_error(errno, std::generic_category()); threadListen = thread([this] { doListen(); }); -- cgit v1.2.3