From f944de133002211ed4e2654ce0521f96a0ce057a Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 18 Dec 2017 08:54:45 +0100 Subject: Use ::bind in UdpSocket That should help for the OSX Travis build --- lib/UdpSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3