mirror of
https://git.freebsd.org/ports.git
synced 2025-06-18 19:20:36 -04:00
Changes: https://android.googlesource.com/platform/system/core/+log/android-7.1.2_r17..android-8.0.0_r4/adb Changes: https://android.googlesource.com/platform/system/core/+log/android-7.1.2_r17..android-8.0.0_r4/fastboot
20 lines
434 B
C++
20 lines
434 B
C++
--- adb/usb.h.orig 2017-06-20 10:50:27 UTC
|
|
+++ adb/usb.h
|
|
@@ -43,6 +43,7 @@ namespace libusb {
|
|
ADB_USB_INTERFACE(libusb::usb_handle*);
|
|
}
|
|
|
|
+#if defined(__linux__) || defined(__APPLE__)
|
|
namespace native {
|
|
struct usb_handle;
|
|
ADB_USB_INTERFACE(native::usb_handle*);
|
|
@@ -53,6 +54,9 @@ struct usb_handle {
|
|
};
|
|
|
|
ADB_USB_INTERFACE(::usb_handle*);
|
|
+#else
|
|
+using namespace libusb;
|
|
+#endif
|
|
|
|
#endif // linux host || darwin
|
|
|