diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-18 08:54:45 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-18 08:54:45 +0100 |
commit | f944de133002211ed4e2654ce0521f96a0ce057a (patch) | |
tree | 43a634ed4567294bc431363a9ce9e25bd107fa38 | |
parent | 5ef2067ee1750cf32f12c05ee397106602f49390 (diff) | |
download | dabmod-f944de133002211ed4e2654ce0521f96a0ce057a.tar.gz dabmod-f944de133002211ed4e2654ce0521f96a0ce057a.tar.bz2 dabmod-f944de133002211ed4e2654ce0521f96a0ce057a.zip |
Use ::bind in UdpSocket
That should help for the OSX Travis build
-rw-r--r-- | lib/UdpSocket.cpp | 2 |
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; |