From 22396e2aa40cef8434bda2f6c244741323020fbe Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 13 Dec 2011 16:42:03 +0300 Subject: Fix build with system-wide libhiredis. --- src/lua/lua_redis.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/lua') diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c index e4f1f996c..5b845108e 100644 --- a/src/lua/lua_redis.c +++ b/src/lua/lua_redis.c @@ -23,9 +23,17 @@ #include "lua_common.h" #include "dns.h" + +#ifndef WITH_SYSTEM_HIREDIS #include "hiredis.h" #include "async.h" #include "adapters/libevent.h" +#else +#include +#include +#include +#endif + /** * Redis access API for lua from task object -- cgit v1.2.3