From da40714cb12b7e2642e42be253b4f33b8bf79ecb Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Mon, 25 Apr 2016 00:17:58 -0600 Subject: [PATCH] common: define json_boolean when not defined Older versions of jansson in current use don't have this macro defined. --- src/suricata-common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/suricata-common.h b/src/suricata-common.h index 1c097d2314..9dda1f3ca2 100644 --- a/src/suricata-common.h +++ b/src/suricata-common.h @@ -219,6 +219,10 @@ #ifndef JSON_ESCAPE_SLASH #define JSON_ESCAPE_SLASH 0 #endif +/* Appears not all current distros have jansson that defines this. */ +#ifndef json_boolean +#define json_boolean(val) ((val) ? json_true() : json_false()) +#endif #endif #if CPPCHECK==1