summaryrefslogtreecommitdiffstats
path: root/otautil/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'otautil/Android.mk')
-rw-r--r--otautil/Android.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/otautil/Android.mk b/otautil/Android.mk
index f7ca9a9ee..45e0f765d 100644
--- a/otautil/Android.mk
+++ b/otautil/Android.mk
@@ -25,6 +25,12 @@ LOCAL_STATIC_LIBRARIES := \
libselinux \
libbase
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 26; echo $$?),0)
+# Android 8.1 header
+LOCAL_C_INCLUDES += \
+ system/core/libziparchive/include
+endif
+
LOCAL_MODULE := libotautil
LOCAL_CFLAGS := \
-Werror \