SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,14 @@
Correctly qualify bind
Index: src/netrender.cpp
--- src/netrender.cpp.orig
+++ src/netrender.cpp
@@ -92,7 +92,7 @@ bool CNetRender::SetServer(char *portNo, char *statusO
sizeof(timeout)) < 0)
std::cout << "socket options error " << strerror(errno);
- status = bind(socketfd, host_info_list->ai_addr, host_info_list->ai_addrlen);
+ status = ::bind(socketfd, host_info_list->ai_addr, host_info_list->ai_addrlen);
if (status == -1)
{
std::cout << "bind error" << std::endl ;