]> sigrok.org Git - libsigrok.git/commitdiff
sr_dev_inst_connid_get() requires libusb.
authorBert Vermeulen <redacted>
Wed, 22 Oct 2014 22:22:07 +0000 (00:22 +0200)
committerBert Vermeulen <redacted>
Wed, 22 Oct 2014 22:22:07 +0000 (00:22 +0200)
src/device.c

index f3a76ac269b9a67a7f0f765a8e509d4138736663..e7a0c4ffd277bf72c9a85b8946f37c13886df7ff 100644 (file)
@@ -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
 
 /** @} */