Line 0
Link Here
|
|
|
1 |
--- gcomm/src/asio_tcp.cpp.orig 2020-01-23 13:38:58 UTC |
2 |
+++ gcomm/src/asio_tcp.cpp |
3 |
@@ -775,7 +775,7 @@ void gcomm::AsioTcpSocket::assign_remote_addr() |
4 |
gcomm::SocketStats gcomm::AsioTcpSocket::stats() const |
5 |
{ |
6 |
SocketStats ret; |
7 |
-#if defined(__linux__) || defined(__FreeBSD__) |
8 |
+#if defined(__linux__) |
9 |
struct tcp_info tcpi; |
10 |
memset(&tcpi, 0, sizeof(tcpi)); |
11 |
socklen_t tcpi_len(sizeof(tcpi)); |
12 |
@@ -798,7 +798,7 @@ gcomm::SocketStats gcomm::AsioTcpSocket::stats() const |
13 |
ret.send_queue_bytes = send_q_.queued_bytes(); |
14 |
ret.send_queue_segments = send_q_.segments(); |
15 |
} |
16 |
-#endif /* __linux__ || __FreeBSD__ */ |
17 |
+#endif /* __linux__ */ |
18 |
return ret; |
19 |
} |
20 |
|