From 33dabf260748801ac00dffb16a8e830e1f03ea45 Mon Sep 17 00:00:00 2001 From: lukss12 Date: Fri, 13 Feb 2015 18:12:48 -0300 Subject: [PATCH] Update jshn.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When trying to compile on Ubuntu 14.04 got: [ 51%] Building C object CMakeFiles/jshn.dir/jshn.c.o /opt/git/libubox/jshn.c: In function ‘jshn_parse’: /opt/git/libubox/jshn.c:162:2: warning: implicit declaration of function ‘is_error’ [-Wimplicit-function-declaration] if (is_error(obj) || json_object_get_type(obj) != json_type_object) { ^ adding #include solve the problem (You must have json-c sources on "/usr/include/json") for this to function. --- jshn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/jshn.c b/jshn.c index f71e6e6..827970b 100644 --- a/jshn.c +++ b/jshn.c @@ -19,6 +19,7 @@ #include #endif +#include // or reference to is_error() at jshn_parse() will give problems #include #include #include