From a0c7e23ad871c0e77dd8632c76f87bec1c6fd002 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 2 May 2013 17:37:55 +0200 Subject: [PATCH] Fix the build when libusb is not available. Thanks Simon Richter for reporting. --- std.c | 4 ++++ 1 file changed, 4 insertions(+) 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); }