aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
parent376e6fa835877f00852fd1931dc770c340ffb288 (diff)
downloadrspamd-afd7cd1dd76f33d8a8122ca725328203389e072a.tar.gz
rspamd-afd7cd1dd76f33d8a8122ca725328203389e072a.zip
Fix include directive for hiredis.
Diffstat (limited to 'src')
-rw-r--r--src/libstat/backends/redis.c7
-rw-r--r--src/lua/lua_redis.c6
2 files changed, 8 insertions, 5 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"
diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c
index 66a8c6cac..4f304643f 100644
--- a/src/lua/lua_redis.c
+++ b/src/lua/lua_redis.c
@@ -25,9 +25,9 @@
#include "dns.h"
#ifdef WITH_HIREDIS
-#include "hiredis.h"
-#include "async.h"
-#include "adapters/libevent.h"
+#include "hiredis/hiredis.h"
+#include "hiredis/async.h"
+#include "hiredis/adapters/libevent.h"
#endif
#define REDIS_DEFAULT_TIMEOUT 1.0