diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-08 13:41:26 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-08 13:41:26 +0100 |
commit | afd7cd1dd76f33d8a8122ca725328203389e072a (patch) | |
tree | f6dec0a67c411abf2282e94977da9cc2de984d0d /src | |
parent | 376e6fa835877f00852fd1931dc770c340ffb288 (diff) | |
download | rspamd-afd7cd1dd76f33d8a8122ca725328203389e072a.tar.gz rspamd-afd7cd1dd76f33d8a8122ca725328203389e072a.zip |
Fix include directive for hiredis.
Diffstat (limited to 'src')
-rw-r--r-- | src/libstat/backends/redis.c | 7 | ||||
-rw-r--r-- | src/lua/lua_redis.c | 6 |
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 |