Fix build on platforms lacking TIOCOUTQ ioctl
[exim.git] / src / src / transports / smtp.c
index 9e337e93f8d65bc22042f6e639a418896750c607..c669bd21084b968ddd61974e7e224bbf19745b6a 100644 (file)
@@ -4134,15 +4134,15 @@ if (!sx->ok)
 
         *message_defer = TRUE;
         }
-
+#ifdef TIOCOUTQ
       DEBUG(D_transport) if (sx->cctx.sock >= 0)
        {
        int n;
        if (ioctl(sx->cctx.sock, TIOCOUTQ, &n) == 0)
          debug_printf("%d bytes remain in socket output buffer\n", n);
        }
+#endif
       }
-
     /* Otherwise, we have an I/O error or a timeout other than after MAIL or
     ".", or some other transportation error. We defer all addresses and yield
     DEFER, except for the case of failed add_headers expansion, or a transport