summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2022-04-30 23:04:15 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2022-04-30 23:04:15 +0200
commit5c1fa19ac78283435a00c48713864cde6005b5bb (patch)
treee75edbe3037c8ef20c5d98fdeab0c24452929443 /src
parent8c22bcd5e6aff4f566a684f38c550be7854eba67 (diff)
Network: explicitly qualify global bind
Android build fails otherwise.
Diffstat (limited to 'src')
-rw-r--r--src/network.cpp2
1 files changed, 1 insertions, 1 deletions
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<LocalState> & 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(); });