aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/backends
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-08 13:41:26 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-08 13:41:26 +0100
commitafd7cd1dd76f33d8a8122ca725328203389e072a (patch)
treef6dec0a67c411abf2282e94977da9cc2de984d0d /src/libstat/backends
parent376e6fa835877f00852fd1931dc770c340ffb288 (diff)
downloadrspamd-afd7cd1dd76f33d8a8122ca725328203389e072a.tar.gz
rspamd-afd7cd1dd76f33d8a8122ca725328203389e072a.zip
Fix include directive for hiredis.
Diffstat (limited to 'src/libstat/backends')
-rw-r--r--src/libstat/backends/redis.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libstat/backends/redis.c b/src/libstat/backends/redis.c
index 9d2f05eea..f25b88b7e 100644
--- a/src/libstat/backends/redis.c
+++ b/src/libstat/backends/redis.c
@@ -24,10 +24,13 @@
#include "config.h"
#include "main.h"
#include "stat_internal.h"
-#include "hiredis.h"
-#include "adapters/libevent.h"
#include "upstream.h"
+#ifdef WITH_HIREDIS
+#include "hiredis/hiredis.h"
+#include "hiredis/adapters/libevent.h"
+#endif
+
#define REDIS_CTX(p) (struct redis_stat_ctx *)(p)
#define REDIS_RUNTIME(p) (struct redis_stat_runtime *)(p)
#define REDIS_BACKEND_TYPE "redis"