openbsd-ports/net/kismet/patches/patch-tcpserver_cc
sebastia ab9f231262 Update the ancient version to the more recent 2016-07-R1, tested on
i386 and amd64 with a couple of different wifi adapters by myself
and kili@ test on amd64.

lots of things changed, gpsmap GUI is gone. security model changed,
see MESSAGE. Take over MAINTAINER from kili@

OK kili@
2019-03-03 23:11:04 +00:00

15 lines
553 B
Plaintext

$OpenBSD: patch-tcpserver_cc,v 1.5 2019/03/03 23:11:04 sebastia Exp $
Index: tcpserver.cc
--- tcpserver.cc.orig
+++ tcpserver.cc
@@ -84,7 +84,7 @@ int TcpServer::EnableServer() {
}
// Bind the socket
- if (bind(serv_fd, (struct sockaddr *) &serv_sock, sizeof(serv_sock)) < 0) {
+ if (::bind(serv_fd, (struct sockaddr *) &serv_sock, sizeof(serv_sock)) < 0) {
snprintf(errstr, STATUS_MAX, "TCP server bind() failed: %s",
strerror(errno));
globalreg->messagebus->InjectMessage(errstr, MSGFLAG_ERROR);