json: Add conditionals to avoid locking if Jansson is thread safe.

Jansson is thread safe for all read-only functions and reference
counting starting v2.11.  This allows simplification of our code and
removal of locking around reference counting and dumping.

Change-Id: Id985cb3ffa6681f9ac765642e20fcd187bd4aeee
This commit is contained in:
Corey Farrell
2018-01-30 21:31:51 -05:00
parent c86ed5a69d
commit 04490fb1d8
2 changed files with 42 additions and 6 deletions

View File

@@ -56,7 +56,7 @@ PACKAGES_FBSD="$PACKAGES_FBSD sqlite3 libxslt jansson e2fsprogs-libuuid gsm libs
KVERS=`uname -r`
JANSSON_VER=2.10
JANSSON_VER=2.11
case "$1" in
test)