mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 01:47:29 +00:00
lib: Fix compile for json
When compiling with the json library instead of the json-c library allow it to switch back to the old way of printing. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
daca38aece
commit
afe0c07b41
@ -26,6 +26,12 @@
|
|||||||
#include <json-c/json.h>
|
#include <json-c/json.h>
|
||||||
#else
|
#else
|
||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* json_object_to_json_string_ext is only available for json-c
|
||||||
|
* so let's just turn it back to the original usage.
|
||||||
|
*/
|
||||||
|
#define json_object_to_json_string_ext(A, B) json_object_to_json_string (A)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern int use_json(const int argc, const char *argv[]);
|
extern int use_json(const int argc, const char *argv[]);
|
||||||
|
Loading…
Reference in New Issue
Block a user