freebsd-ports/databases/galera/files/patch-gcomm_src_asio__tcp.cpp
Steve Wills 844e7911d7 databases/galera: Update to 25.3.32
PR:		252603
Submitted by:	devel@galeracluster.com (maintainer)
2021-01-17 18:40:39 +00:00

20 lines
685 B
C++

--- gcomm/src/asio_tcp.cpp.orig 2020-12-29 14:45:24 UTC
+++ gcomm/src/asio_tcp.cpp
@@ -775,7 +775,7 @@ void gcomm::AsioTcpSocket::assign_remote_addr()
gcomm::SocketStats gcomm::AsioTcpSocket::stats() const
{
SocketStats ret;
-#if defined(__linux__) || defined(__FreeBSD__)
+#if defined(__linux__)
struct tcp_info tcpi;
memset(&tcpi, 0, sizeof(tcpi));
socklen_t tcpi_len(sizeof(tcpi));
@@ -807,7 +807,7 @@ gcomm::SocketStats gcomm::AsioTcpSocket::stats() const
ret.send_queue_bytes = send_q_.queued_bytes();
ret.send_queue_segments = send_q_.segments();
}
-#endif /* __linux__ || __FreeBSD__ */
+#endif /* __linux__ */
return ret;
}