Extend the CMakeLists.txt in the apps directory to be usable as a standalone build, to link against other versions of json-c.

Tweak json_parse.c slightly to allow it to build against older json-c versions.
This commit is contained in:
Eric Haszlakiewicz
2020-04-26 04:02:36 +00:00
parent 00272292a7
commit d9981f67dd
4 changed files with 139 additions and 9 deletions

View File

@@ -0,0 +1,8 @@
/* Define to 1 if you have the <sys/resource.h> header file. */
#cmakedefine HAVE_SYS_RESOURCE_H
/* Define if you have the `getrusage' function. */
#cmakedefine HAVE_GETRUSAGE
#cmakedefine HAVE_JSON_TOKENER_GET_PARSE_END