diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-12-13 16:42:03 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-12-13 16:42:03 +0300 |
commit | 22396e2aa40cef8434bda2f6c244741323020fbe (patch) | |
tree | c202aff028a98fe5839b531b566a20e075490c3d /src/lua/lua_redis.c | |
parent | 835efda3d565d8541a31cc8116fb9c77d71cd0d8 (diff) | |
download | rspamd-22396e2aa40cef8434bda2f6c244741323020fbe.tar.gz rspamd-22396e2aa40cef8434bda2f6c244741323020fbe.zip |
Fix build with system-wide libhiredis.
Diffstat (limited to 'src/lua/lua_redis.c')
-rw-r--r-- | src/lua/lua_redis.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 <hiredis/hiredis.h> +#include <hiredis/async.h> +#include <hiredis/adapters/libevent.h> +#endif + /** * Redis access API for lua from task object |