aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2010-04-05 15:33:15 +0200
committerJohannes Berg <johannes@sipsolutions.net>2010-04-05 15:33:15 +0200
commit04453737f2a63720b020fe8d4d73f3b81d9a5db0 (patch)
treef15db54d24813a95c62423bbdc505446449e4f8d
parent1a38b68745758c147b41cadeb213ee5f431b005f (diff)
downloaddovecot-antispam-04453737f2a63720b020fe8d4d73f3b81d9a5db0.tar.gz
dovecot-antispam-04453737f2a63720b020fe8d4d73f3b81d9a5db0.tar.xz
dovecot-antispam-04453737f2a63720b020fe8d4d73f3b81d9a5db0.zip
avoid warnings for dovecot <= 1.1
-rw-r--r--antispam-plugin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/antispam-plugin.h b/antispam-plugin.h
index 38a3be6..fd8783a 100644
--- a/antispam-plugin.h
+++ b/antispam-plugin.h
@@ -84,6 +84,10 @@ extern bool need_folder_hook;
/*
* Dovecot version compat code
*/
+#if DOVECOT_VERSION <= DOVECOT_VERSION_CODE(1, 1, 0)
+#define mailbox_get_storage(s) mailbox_get_storage((struct mailbox *)s)
+#define mailbox_get_name(s) mailbox_get_name((struct mailbox *)s)
+#endif
#if DOVECOT_VERSION_CODE(1, 1, 0) == DOVECOT_VERSION || DOVECOT_VERSION_CODE(1, 2, 0) == DOVECOT_VERSION
#define __attr_unused__ ATTR_UNUSED