Fix the build when libusb is not available.

Thanks Simon Richter <Simon.Richter@hogyros.de> for reporting.
This commit is contained in:
Uwe Hermann 2013-05-02 17:37:55 +02:00
parent 3a277f3b2b
commit a0c7e23ad8
1 changed files with 4 additions and 0 deletions

4
std.c
View File

@ -204,7 +204,11 @@ SR_PRIV int std_dev_clear(const struct sr_dev_driver *driver,
if (sdi->conn) { if (sdi->conn) {
if (sdi->inst_type == SR_INST_USB) if (sdi->inst_type == SR_INST_USB)
#if HAVE_LIBUSB_1_0
sr_usb_dev_inst_free(sdi->conn); sr_usb_dev_inst_free(sdi->conn);
#else
;
#endif
else if (sdi->inst_type == SR_INST_SERIAL) else if (sdi->inst_type == SR_INST_SERIAL)
sr_serial_dev_inst_free(sdi->conn); sr_serial_dev_inst_free(sdi->conn);
} }