add pkgconfig support for json-c
[project/libubox.git] / jshn.c
diff --git a/jshn.c b/jshn.c
index 9cbdb3194489d180406c8f656fa98d5c014c82aa..781861deda534602b560f138151534da55b91e31 100644 (file)
--- a/jshn.c
+++ b/jshn.c
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
-#include <json/json.h>
+#ifdef JSONC
+        #include <json.h>
+#else
+        #include <json/json.h>
+#endif
+
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>