From a9900ad38edbae0d26d51068888017e556cdc5b2 Mon Sep 17 00:00:00 2001 From: Matt Stancliff Date: Fri, 4 Apr 2014 15:21:04 -0400 Subject: [PATCH] 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 --- deps/lua/src/lua_cjson.c | 2 ++ 1 file changed, 2 insertions(+) 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