summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Stancliff <matt@genges.com>2014-04-04 15:21:04 -0400
committerantirez <antirez@gmail.com>2014-11-14 17:28:32 +0100
commit56e186139840ad58d7e5752c86bdd3a4eb5e856f (patch)
treee765fdfa2d4750120a3bf2b72be46fb716663cbb
parente2983dd03fee83cfcd5628d5d8f5a50c56565c08 (diff)
downloadredis-56e186139840ad58d7e5752c86bdd3a4eb5e856f.tar.gz
Lua: Use Redis solaris compatability for cjson too
cjson calls isinf, but some Solaris versions don't have isinf even with the attempted fix we have in deps/Makefile. We can harmlessly include the Redis solarisfixes.h header to give cjson proper isinf. Note: cjson has a compile-time setting for using their own defined isinf, but the Redis definition in solarisfixes.h is more complete. Fixes antirez#1620
-rw-r--r--deps/lua/src/lua_cjson.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/lua/src/lua_cjson.c b/deps/lua/src/lua_cjson.c
index f91b7e38a..98498fd3f 100644
--- a/deps/lua/src/lua_cjson.c
+++ b/deps/lua/src/lua_cjson.c
@@ -46,6 +46,8 @@
#include "strbuf.h"
#include "fpconv.h"
+#include "../../../src/solarisfixes.h"
+
#ifndef CJSON_MODNAME
#define CJSON_MODNAME "cjson"
#endif