summaryrefslogtreecommitdiff
path: root/devel/android-tools-adb/files/patch-adb_transport__usb.cpp
blob: a89b9bfac585c2a53a304ee4f06057308d1b3492 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- adb/transport_usb.cpp.orig	2018-06-21 00:58:42 UTC
+++ adb/transport_usb.cpp
@@ -186,6 +186,8 @@ int is_adb_interface(int usb_class, int usb_subclass, 
 bool should_use_libusb() {
 #if !ADB_HOST
     return false;
+#elif !defined(__linux__) && !defined(__APPLE__) && !defined(_WIN32)
+    return true;
 #else
     static bool enable = getenv("ADB_LIBUSB") && strcmp(getenv("ADB_LIBUSB"), "1") == 0;
     return enable;