From: Uwe Hermann Date: Thu, 2 May 2013 15:37:55 +0000 (+0200) Subject: Fix the build when libusb is not available. X-Git-Tag: dsupstream~10 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a0c7e23ad871c0e77dd8632c76f87bec1c6fd002;p=libsigrok.git Fix the build when libusb is not available. Thanks Simon Richter for reporting. --- 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); }