    };
  
    /* remember expanded spamd_address if needed */
-@@ -440,4 +574,126 @@ again:
+@@ -442,4 +553,126 @@ again:
    };
  }
  

+}
+
 #endif
diff --git a/src/src/spam.h b/src/src/spam.h
index ba700c8..6047c59 100644
--- a/src/src/spam.h
+++ b/src/src/spam.h
@@ -22,7 +22,8 @@
 
 typedef struct spamd_address_container {

+/* poll socket to obtain write readiness */
+static int spam_poll_socket (int sock, time_t start);
+
 int
 spam(uschar **listptr)
 {
@@ -31,10 +39,11 @@ spam(uschar **listptr)
   FILE *mbox_file;
   int spamd_sock = -1;
   uschar spamd_buffer[32600];
