From 726b6935c522131238c460915188e8e040655ae5 Mon Sep 17 00:00:00 2001 From: Tobias Kortkamp Date: Mon, 2 Dec 2019 12:57:00 +0000 Subject: games/ultimatestunts: Unbreak build udpnet.cpp:61:6: error: no viable conversion from '__bind' to 'int' int rc = bind (m_Socket, (struct sockaddr *) &MyAddress, sizeof(MyAddress)); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http://beefy9.nyi.freebsd.org/data/113amd64-default/518685/logs/errors/ultimatestunts-0.7.7.1_5.log While here apply r518709 to this port too and link with lld when possible --- games/ultimatestunts/files/patch-simulation_udpnet.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 games/ultimatestunts/files/patch-simulation_udpnet.cpp (limited to 'games/ultimatestunts/files/patch-simulation_udpnet.cpp') diff --git a/games/ultimatestunts/files/patch-simulation_udpnet.cpp b/games/ultimatestunts/files/patch-simulation_udpnet.cpp new file mode 100644 index 000000000000..c0837cbddcc8 --- /dev/null +++ b/games/ultimatestunts/files/patch-simulation_udpnet.cpp @@ -0,0 +1,15 @@ +udpnet.cpp:61:6: error: no viable conversion from '__bind' to 'int' + int rc = bind (m_Socket, (struct sockaddr *) &MyAddress, sizeof(MyAddress)); + ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +--- simulation/udpnet.cpp.orig 2019-12-02 12:38:14 UTC ++++ simulation/udpnet.cpp +@@ -58,7 +58,7 @@ CUDPNet::CUDPNet(unsigned int port) + MyAddress.sin_addr.s_addr = htonl(INADDR_ANY); + MyAddress.sin_port = htons(port); + +- int rc = bind (m_Socket, (struct sockaddr *) &MyAddress, sizeof(MyAddress)); ++ int rc = ::bind (m_Socket, (struct sockaddr *) &MyAddress, sizeof(MyAddress)); + if(rc < 0) + { + printf("cannot bind port number %d \n", port); -- cgit v1.2.3