From fa532b839f14482206ee4d045ce3b087ae35e63e Mon Sep 17 00:00:00 2001
From: John Crispin <john@openwrt.org>
Date: Thu, 17 Dec 2015 09:30:16 +0000
Subject: [PATCH] network/services/lldpd: Fix missing dependency when using
 JSON

Using the JSON output option depends on json library so
add select json-c library when JSON output is selected.

Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>

SVN-Revision: 47928
---
 package/network/services/lldpd/Config.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/network/services/lldpd/Config.in b/package/network/services/lldpd/Config.in
index 93d84e29ea..72150e7e6f 100644
--- a/package/network/services/lldpd/Config.in
+++ b/package/network/services/lldpd/Config.in
@@ -49,6 +49,7 @@ config LLDPD_WITH_CUSTOM
 config LLDPD_WITH_JSON
 	bool
 	prompt "Enable JSON output for the LLDP Command-Line Interface"
+	select PACKAGE_json-c
 	default n
 
 endmenu