From 8b8fd2562622834d9a16ae871489be13f3b63191 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Thu, 29 Aug 2019 15:35:29 +0200 Subject: Compilation fix on systems without JSON-C --- example/ndpiReader.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'example') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 625701a70..20518c446 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1839,6 +1839,7 @@ static void json_init() { /* *********************************************** */ +#ifdef HAVE_JSON_C /** * @brief JSON destroy function */ @@ -1847,6 +1848,7 @@ static void json_destroy() { json_object_put(jArray_unknown_flows); json_object_put(jArray_topStats); } +#endif /* *********************************************** */ @@ -3263,7 +3265,9 @@ void test_lib() { terminateDetection(thread_id); } +#ifdef HAVE_JSON_C json_destroy(); +#endif } /* *********************************************** */ -- cgit v1.2.3