diff --git a/std.c b/std.c index fe089346..cfe031d9 100644 --- a/std.c +++ b/std.c @@ -204,7 +204,11 @@ SR_PRIV int std_dev_clear(const struct sr_dev_driver *driver, if (sdi->conn) { if (sdi->inst_type == SR_INST_USB) +#if HAVE_LIBUSB_1_0 sr_usb_dev_inst_free(sdi->conn); +#else + ; +#endif else if (sdi->inst_type == SR_INST_SERIAL) sr_serial_dev_inst_free(sdi->conn); }