Skip to content

Update jshn.c#2

Open
thefat32 wants to merge 1 commit into
xfguo:masterfrom
thefat32:patch-2
Open

Update jshn.c#2
thefat32 wants to merge 1 commit into
xfguo:masterfrom
thefat32:patch-2

Conversation

@thefat32

Copy link
Copy Markdown

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 json/bits.h solve the problem (You must have json-c sources on "/usr/include/json") for this to function.

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 <json/bits.h> solve the problem (You must have json-c sources on "/usr/include/json") for this to function.
@xfguo

xfguo commented Feb 15, 2015

Copy link
Copy Markdown
Owner

Hi, @lukss12 , you should commit you patch to the mail list of OpenWrt-Dev, https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants