From f07eb9f9a782844c999f5b61f0aa5c076511f37f Mon Sep 17 00:00:00 2001 From: lukss12 Date: Fri, 13 Feb 2015 18:07:53 -0300 Subject: [PATCH] Update blobmsg_json.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: [ 48%] Building C object CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o /opt/git/libubox/blobmsg_json.c: In function ‘__blobmsg_add_json’: /opt/git/libubox/blobmsg_json.c:78:2: error: implicit declaration of function ‘is_error’ [-Werror=implicit-function-declaration] if (is_error(obj)) ^ adding #include solve the problem (You must have json-c sources on "/usr/include/json") for this to function. --- blobmsg_json.c | 1 + 1 file changed, 1 insertion(+) diff --git a/blobmsg_json.c b/blobmsg_json.c index c84fd93..8ed95e0 100644 --- a/blobmsg_json.c +++ b/blobmsg_json.c @@ -15,6 +15,7 @@ */ #include "blobmsg.h" #include "blobmsg_json.h" +#include //Or reference to is_error at __blobmsg_add_json() will give problems bool blobmsg_add_object(struct blob_buf *b, json_object *obj) {