diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2021-06-07 18:47:14 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2021-06-07 18:47:14 +0100 |
commit | 4061c7a128e45b03fff70fdfb6c346e2b4b70a10 (patch) | |
tree | cb6abd774da41f47df4f9d534e230d0c7b2647e6 | |
parent | ca261bddd08ddf2091b9ef84a6a02ff232c25aa5 (diff) |
Re-fix non-Linux build
-rw-r--r-- | src/src/daemon.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/src/daemon.c b/src/src/daemon.c index 548daf0ac..c71bde097 100644 --- a/src/src/daemon.c +++ b/src/src/daemon.c @@ -2504,7 +2504,7 @@ for (;;) if (FD_ISSET(lfd, &fds)) { EXIM_SOCKLEN_T alen = sizeof(accepted); -#if defined(TCP_INFO) +#ifdef TCP_INFO struct tcp_info ti; socklen_t tlen = sizeof(ti); @@ -2514,16 +2514,17 @@ for (;;) if ( smtp_backlog_monitor > 0 && getsockopt(lfd, IPPROTO_TCP, TCP_INFO, &ti, &tlen) == 0) { - DEBUG(D_interface) debug_printf("listen fd %d queue max %u curr %u\n", # ifdef EXIM_HAVE_TCPI_UNACKED + DEBUG(D_interface) debug_printf("listen fd %d queue max %u curr %u\n", lfd, ti.tcpi_sacked, ti.tcpi_unacked); smtp_listen_backlog = ti.tcpi_unacked; # elif defined(__FreeBSD__) /* This does not work. Investigate kernel sourcecode. */ + DEBUG(D_interface) debug_printf("listen fd %d queue max %u curr %u\n", lfd, ti.__tcpi_sacked, ti.__tcpi_unacked); smtp_listen_backlog = ti.__tcpi_unacked; # endif -#endif } +#endif accept_socket = accept(lfd, (struct sockaddr *)&accepted, &alen); break; } |