From afd7cd1dd76f33d8a8122ca725328203389e072a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 8 Jul 2015 13:41:26 +0100 Subject: Fix include directive for hiredis. --- src/libstat/backends/redis.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/libstat/backends') 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" -- cgit v1.2.3