diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-05-31 10:26:46 +0200 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2008-05-31 10:26:46 +0200 |
commit | 38db5199da4be4832bf852244951a07b0bc28edb (patch) | |
tree | 9b5b486a68d8eaab45b2939a03e51fd2f96507ac /antispam-plugin.h | |
parent | 1322d31e70e1bab05113251af140d82706ec5e57 (diff) | |
download | dovecot-antispam-38db5199da4be4832bf852244951a07b0bc28edb.tar.gz dovecot-antispam-38db5199da4be4832bf852244951a07b0bc28edb.tar.xz dovecot-antispam-38db5199da4be4832bf852244951a07b0bc28edb.zip |
clean up building a bit
Diffstat (limited to 'antispam-plugin.h')
-rw-r--r-- | antispam-plugin.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/antispam-plugin.h b/antispam-plugin.h index dba8ed0..d6e05ca 100644 --- a/antispam-plugin.h +++ b/antispam-plugin.h @@ -74,11 +74,16 @@ bool keyword_is_spam(const char *keyword); extern bool need_keyword_hook; extern bool need_folder_hook; -#ifdef CONFIG_DOVECOT_11 -#define __attr_unused__ ATTR_UNUSED -#define ME(err) MAIL_ERROR_ ##err, -#else +#if defined(CONFIG_DOVECOT_11) +#define __attr_unused__ ATTR_UNUSED +#define ME(err) MAIL_ERROR_ ##err, +#define mempool_unref(x) pool_unref(x) +#elif defined(CONFIG_DOVECOT_10) #define ME(err) +#define str_array_length(x) strarray_length(x) +#define mempool_unref(x) pool_unref(*(x)) +#else +#error "Building against this dovecot version is not supported" #endif #endif /* _ANTISPAM_PLUGIN_H */ |