diff options
author | Vlad Glagolev <vaygr@users.noreply.github.com> | 2016-12-06 22:33:34 -0500 |
---|---|---|
committer | Vlad Glagolev <vaygr@users.noreply.github.com> | 2016-12-06 22:33:34 -0500 |
commit | 1500fff0c91d1e00bea1d2adbbf457193918c4ff (patch) | |
tree | d86293a8afb155f15c71bb6a412eeaa7a3e0a148 /src/libserver/fuzzy_backend.c | |
parent | 22f8a1e66c19254516453b53fc38c699c673f3f5 (diff) | |
download | rspamd-1500fff0c91d1e00bea1d2adbbf457193918c4ff.tar.gz rspamd-1500fff0c91d1e00bea1d2adbbf457193918c4ff.zip |
made optional dependency on hiredis really optional
Diffstat (limited to 'src/libserver/fuzzy_backend.c')
-rw-r--r-- | src/libserver/fuzzy_backend.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libserver/fuzzy_backend.c b/src/libserver/fuzzy_backend.c index 3dec60c57..0f89ad196 100644 --- a/src/libserver/fuzzy_backend.c +++ b/src/libserver/fuzzy_backend.c @@ -85,8 +85,9 @@ static const struct rspamd_fuzzy_backend_subr fuzzy_subrs[] = { .id = rspamd_fuzzy_backend_id_sqlite, .periodic = rspamd_fuzzy_backend_expire_sqlite, .close = rspamd_fuzzy_backend_close_sqlite, - }, - [RSPAMD_FUZZY_BACKEND_REDIS] = { + } +#ifdef ENABLE_HIREDIS + ,[RSPAMD_FUZZY_BACKEND_REDIS] = { .init = rspamd_fuzzy_backend_init_redis, .check = rspamd_fuzzy_backend_check_redis, .update = rspamd_fuzzy_backend_update_redis, @@ -96,6 +97,7 @@ static const struct rspamd_fuzzy_backend_subr fuzzy_subrs[] = { .periodic = rspamd_fuzzy_backend_expire_redis, .close = rspamd_fuzzy_backend_close_redis, } +#endif }; struct rspamd_fuzzy_backend { |