summaryrefslogtreecommitdiffstats
path: root/mtp/Android.mk
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2017-08-25 04:45:50 +0200
committerEthan Yonker <dees_troy@teamw.in>2017-08-25 04:45:50 +0200
commit95e8007578193422ef7fe2d098b80e8ba99fc48d (patch)
tree856f90d15b1f7c74d497503bd6ac6fd12b08b32d /mtp/Android.mk
parentMerge "Fix typos / inconsistencies in German language" into android-7.1 (diff)
downloadandroid_bootable_recovery-95e8007578193422ef7fe2d098b80e8ba99fc48d.tar
android_bootable_recovery-95e8007578193422ef7fe2d098b80e8ba99fc48d.tar.gz
android_bootable_recovery-95e8007578193422ef7fe2d098b80e8ba99fc48d.tar.bz2
android_bootable_recovery-95e8007578193422ef7fe2d098b80e8ba99fc48d.tar.lz
android_bootable_recovery-95e8007578193422ef7fe2d098b80e8ba99fc48d.tar.xz
android_bootable_recovery-95e8007578193422ef7fe2d098b80e8ba99fc48d.tar.zst
android_bootable_recovery-95e8007578193422ef7fe2d098b80e8ba99fc48d.zip
Diffstat (limited to '')
-rw-r--r--mtp/Android.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/mtp/Android.mk b/mtp/Android.mk
index c6a7fb7db..32518d3fa 100644
--- a/mtp/Android.mk
+++ b/mtp/Android.mk
@@ -40,6 +40,9 @@ LOCAL_SHARED_LIBRARIES += libz libc libusbhost libstdc++ libdl libcutils libutil
ifneq ($(TW_MTP_DEVICE),)
LOCAL_CFLAGS += -DUSB_MTP_DEVICE=$(TW_MTP_DEVICE)
endif
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 25; echo $$?),0)
+ LOCAL_CFLAGS += -DHAS_USBHOST_TIMEOUT
+endif
include $(BUILD_SHARED_LIBRARY)