From: Bert Vermeulen Date: Wed, 22 Oct 2014 22:22:07 +0000 (+0200) Subject: sr_dev_inst_connid_get() requires libusb. X-Git-Tag: libsigrok-0.4.0~829 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ce48b174da534120e7b725cd664743a6e9a75956;p=libsigrok.git sr_dev_inst_connid_get() requires libusb. --- diff --git a/src/device.c b/src/device.c index f3a76ac2..e7a0c4ff 100644 --- a/src/device.c +++ b/src/device.c @@ -554,6 +554,7 @@ SR_API const char *sr_dev_inst_sernum_get(struct sr_dev_inst *sdi) return sdi->serial_num; } +#ifdef HAVE_LIBUSB_1_0 /** * Queries a device instances' connection identifier. * @@ -621,5 +622,6 @@ SR_API const char *sr_dev_inst_connid_get(struct sr_dev_inst *sdi) return sdi->connection_id; } +#endif /** @} */