X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fdevice.c;h=4642e5f038fdbfc83c871dc02728e2e38fb76981;hp=20ab882b86d889d0dfa27c1977e959c2299119bb;hb=1df81f4b062fcfe8c6de4d2e5edf9743030ae0fc;hpb=a7b8692ed061c5baff6620c0839db85465cd24c9 diff --git a/src/device.c b/src/device.c index 20ab882b..4642e5f0 100644 --- a/src/device.c +++ b/src/device.c @@ -518,7 +518,7 @@ SR_PRIV void sr_usb_dev_inst_free(struct sr_usb_dev_inst *usb) #endif -#ifdef HAVE_LIBSERIALPORT +#ifdef HAVE_SERIAL_COMM /** * Allocate and init a struct for a serial device instance. @@ -814,7 +814,7 @@ SR_API const char *sr_dev_inst_connid_get(const struct sr_dev_inst *sdi) struct libusb_device **devlist; #endif -#ifdef HAVE_LIBSERIALPORT +#ifdef HAVE_SERIAL_COMM struct sr_serial_dev_inst *serial; #endif @@ -824,7 +824,7 @@ SR_API const char *sr_dev_inst_connid_get(const struct sr_dev_inst *sdi) if (!sdi) return NULL; -#ifdef HAVE_LIBSERIALPORT +#ifdef HAVE_SERIAL_COMM if ((!sdi->connection_id) && (sdi->inst_type == SR_INST_SERIAL)) { /* connection_id isn't populated, let's do that for serial devices. */