-extern BOOL directory_make(uschar *, uschar *, int, BOOL);
+#ifdef WITH_OLD_DEMIME
+extern int demime(uschar **);
+#endif
+extern BOOL directory_make(const uschar *, const uschar *, int, BOOL);
+#ifndef DISABLE_DKIM
+extern BOOL dkim_transport_write_message(address_item *, int, int,
+ int, uschar *, uschar *, uschar *, uschar *, rewrite_rule *,
+ int, uschar *, uschar *, uschar *, uschar *, uschar *, uschar *);
+#endif