libjson-c: import patch to fix compilation on macos
authorNick Hainke <vincent@systemli.org>
Thu, 18 May 2023 11:07:23 +0000 (13:07 +0200)
committerNick Hainke <vincent@systemli.org>
Fri, 19 May 2023 11:43:18 +0000 (13:43 +0200)
commitf73d011810790095d20f53f473926f5b0fc6284b
treee4ef18f1af06abc07658efe4cf1fdf0fc903e8d6
parentf18cb0ba637de53c39df675711656cd111c030a5
libjson-c: import patch to fix compilation on macos

Fixes errors in the form of:
  /Users/user/src/openwrt/openwrt/build_dir/hostpkg/json-c-0.16/json_util.c:63:35: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
  const char *json_util_get_last_err()
                                    ^
                                     void
  1 error generated.
  ninja: build stopped: subcommand failed.

Reported-by: Paul Spooren <mail@aparcar.org>
Suggested-by: Paul Spooren <mail@aparcar.org>
Signed-off-by: Nick Hainke <vincent@systemli.org>
package/libs/libjson-c/Makefile
package/libs/libjson-c/patches/010-fix-build-with-clang-15.patch [new file with mode: 0644]