Re-fix non-Linux build
authorJeremy Harris <jgh146exb@wizmail.org>
Mon, 7 Jun 2021 17:47:14 +0000 (18:47 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Mon, 7 Jun 2021 17:47:14 +0000 (18:47 +0100)
src/src/daemon.c

index 548daf0ac0bdbd343df4e472f54aa749872279f2..c71bde09768f6bde4a1c30dc9da3b3463380ef27 100644 (file)
@@ -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;
             }