summaryrefslogtreecommitdiff
authorJing Wei <jing.wei@amlogic.com>2017-04-10 08:48:53 (GMT)
committer Jing Wei <jing.wei@amlogic.com>2017-04-10 08:48:53 (GMT)
commitefe245f8d0f43b522e8a78bc51bda0e6716ba5a9 (patch)
tree45912b95d38e7ded9a69fd469bee780d884aad2d
parent2acd2b8bd118d04b600f2e79242e69c86a625b78 (diff)
downloadtv_input-efe245f8d0f43b522e8a78bc51bda0e6716ba5a9.zip
tv_input-efe245f8d0f43b522e8a78bc51bda0e6716ba5a9.tar.gz
tv_input-efe245f8d0f43b522e8a78bc51bda0e6716ba5a9.tar.bz2
PD#141549: perfect compiling error for 6.0
Change-Id: If39e2f236f296650cd102fb297a695024bc02bc7
Diffstat
-rw-r--r--Android.mk2
-rw-r--r--tv_input.cpp4
2 files changed, 6 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 806233e..1194ffc 100644
--- a/Android.mk
+++ b/Android.mk
@@ -22,6 +22,8 @@ LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_SHARED_LIBRARIES := libcutils libutils libtvbinder libbinder libui liblog libhardware
LOCAL_REQUIRED_MODULES := libtvbinder
+LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
+
LOCAL_SRC_FILES := tv_input.cpp \
TvPlay.cpp
diff --git a/tv_input.cpp b/tv_input.cpp
index ac31c34..87106f4 100644
--- a/tv_input.cpp
+++ b/tv_input.cpp
@@ -29,7 +29,11 @@
#include <ui/GraphicBuffer.h>
#include <gralloc_priv.h>
#include <gralloc_helper.h>
+
+#if PLATFORM_SDK_VERSION > 23
#include <gralloc_usage_ext.h>
+#endif
+
#include <hardware/hardware.h>
#include <hardware/aml_screen.h>
#include <linux/videodev2.h>