json-c: compilation fix for qssi target

FAILED: ninja: 'out/target/product/qssi/obj/KERNEL_OBJ/usr',
needed by 'out/target/product/qssi/obj/SHARED_LIBRARIES/libjson_intermediates/arraylist.o',
missing and no known rule to make it

Change-Id: I80357feaa424dd5b126dda9f508690ccf21affb5
diff --git a/Android.mk b/Android.mk
index d14d466..9b58a69 100644
--- a/Android.mk
+++ b/Android.mk
@@ -3,8 +3,10 @@
 LOCAL_MODULE := libjson
 LOCAL_PATH := $(LIBJSON_ROOT)
 LOCAL_CFLAGS := -Werror -Wno-error=unused-parameter
+ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
 LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
+endif
 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
 LOCAL_SRC_FILES := arraylist.c \
 		debug.c \