[exim-cvs] Re-fix non-Linux build

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Exim Git Commits Mailing List
Data:  
Para: exim-cvs
Asunto: [exim-cvs] Re-fix non-Linux build
Gitweb: https://git.exim.org/exim.git/commitdiff/4061c7a128e45b03fff70fdfb6c346e2b4b70a10
Commit:     4061c7a128e45b03fff70fdfb6c346e2b4b70a10
Parent:     ca261bddd08ddf2091b9ef84a6a02ff232c25aa5
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Mon Jun 7 18:47:14 2021 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Mon Jun 7 18:47:14 2021 +0100


    Re-fix non-Linux build
---
 src/src/daemon.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)


diff --git a/src/src/daemon.c b/src/src/daemon.c
index 548daf0..c71bde0 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;
             }