aboutsummaryrefslogtreecommitdiffstats
path: root/lib/UdpSocket.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-18 08:54:45 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-18 08:54:45 +0100
commitf944de133002211ed4e2654ce0521f96a0ce057a (patch)
tree43a634ed4567294bc431363a9ce9e25bd107fa38 /lib/UdpSocket.cpp
parent5ef2067ee1750cf32f12c05ee397106602f49390 (diff)
downloaddabmod-f944de133002211ed4e2654ce0521f96a0ce057a.tar.gz
dabmod-f944de133002211ed4e2654ce0521f96a0ce057a.tar.bz2
dabmod-f944de133002211ed4e2654ce0521f96a0ce057a.zip
Use ::bind in UdpSocket
That should help for the OSX Travis build
Diffstat (limited to 'lib/UdpSocket.cpp')
-rw-r--r--lib/UdpSocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/UdpSocket.cpp b/lib/UdpSocket.cpp
index 570da5f..e711577 100644
--- a/lib/UdpSocket.cpp
+++ b/lib/UdpSocket.cpp
@@ -88,7 +88,7 @@ int UdpSocket::reinit(int port, const std::string& name)
address.setAddress(name);
address.setPort(port);
- if (bind(listenSocket, address.getAddress(), sizeof(sockaddr_in)) == SOCKET_ERROR) {
+ if (::bind(listenSocket, address.getAddress(), sizeof(sockaddr_in)) == SOCKET_ERROR) {
setInetError("Can't bind socket");
::close(listenSocket);
listenSocket = INVALID_SOCKET;