This is an automated email from Gerrit. Matej Kogovsek ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/4216
-- gerrit commit 5dbbd297289ad0b83d0fac669730acbb392ab63a Author: Matej Kogovsek <[email protected]> Date: Sun Sep 3 16:08:13 2017 +0200 Wrapped usb_detach_kernel_driver_np in an #ifdef Change-Id: Ie2003816c84f2e36e0ec0b007d91e2e81155aace Signed-off-by: Matej Kogovsek <[email protected]> diff --git a/src/jtag/drivers/ft232r.c b/src/jtag/drivers/ft232r.c index a0f5bc3..3f158a9 100644 --- a/src/jtag/drivers/ft232r.c +++ b/src/jtag/drivers/ft232r.c @@ -282,8 +282,9 @@ static int ft232r_init(void) ft232r_vid, ft232r_pid); return ERROR_JTAG_INIT_FAILED; found: +#ifdef LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP usb_detach_kernel_driver_np(adapter, 0); - +#endif if (usb_claim_interface(adapter, 0)) { LOG_ERROR("usb_claim_interface failed"); return ERROR_JTAG_INIT_FAILED; -- ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
