From 3d21c334094153d04b614656134e023ce0c7b5db Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Tue, 3 Sep 2019 18:45:51 +0200 Subject: Compilation fix when JSON-C is not present --- example/ndpiReader.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'example') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 74e28a094..d0c46d43e 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -73,12 +73,10 @@ static char *_statsFilePath = NULL; /**< Top stats file path */ static char *_diagnoseFilePath = NULL; /**< Top stats file path */ static char *_jsonFilePath = NULL; /**< JSON file path */ static FILE *stats_fp = NULL; /**< for Top Stats JSON file */ -static FILE *csv_fp = NULL; /**< for CSV export */ -#endif -#ifdef HAVE_JSON_C static json_object *jArray_known_flows = NULL, *jArray_unknown_flows = NULL; static json_object *jArray_topStats = NULL; #endif +static FILE *csv_fp = NULL; /**< for CSV export */ static u_int8_t live_capture = 0; static u_int8_t undetected_flows_deleted = 0; /** User preferences **/ -- cgit v1.2.3