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