aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libserver/cfg_utils.c2
-rw-r--r--src/libserver/fuzzy_backend.c6
-rw-r--r--src/libserver/worker_util.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index 33b438037..a00a1665c 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -172,7 +172,7 @@ rspamd_config_new (void)
cfg->ssl_ciphers = "HIGH:!aNULL:!kRSA:!PSK:!SRP:!MD5:!RC4";
cfg->max_message = DEFAULT_MAX_MESSAGE;
cfg->monitored_ctx = rspamd_monitored_ctx_init ();
-#ifdef ENABLE_HIREDIS
+#ifdef WITH_HIREDIS
cfg->redis_pool = rspamd_redis_pool_init ();
#endif
diff --git a/src/libserver/fuzzy_backend.c b/src/libserver/fuzzy_backend.c
index 0f89ad196..8b5a55965 100644
--- a/src/libserver/fuzzy_backend.c
+++ b/src/libserver/fuzzy_backend.c
@@ -85,9 +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,
- }
-#ifdef ENABLE_HIREDIS
- ,[RSPAMD_FUZZY_BACKEND_REDIS] = {
+ },
+#ifdef WITH_HIREDIS
+ [RSPAMD_FUZZY_BACKEND_REDIS] = {
.init = rspamd_fuzzy_backend_init_redis,
.check = rspamd_fuzzy_backend_check_redis,
.update = rspamd_fuzzy_backend_update_redis,
diff --git a/src/libserver/worker_util.c b/src/libserver/worker_util.c
index 0f7c67579..8bdc626fd 100644
--- a/src/libserver/worker_util.c
+++ b/src/libserver/worker_util.c
@@ -289,7 +289,7 @@ rspamd_prepare_worker (struct rspamd_worker *worker, const char *name,
rspamd_worker_init_signals (worker, ev_base);
rspamd_control_worker_add_default_handler (worker, ev_base);
-#ifdef ENABLE_HIREDIS
+#ifdef WITH_HIREDIS
rspamd_redis_pool_config (worker->srv->cfg->redis_pool,
worker->srv->cfg, ev_base);
#endif