X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fdevice.c;h=4642e5f038fdbfc83c871dc02728e2e38fb76981;hb=7e4e65bf65420617d19054bf3c2b2b47aa04c83d;hp=20ab882b86d889d0dfa27c1977e959c2299119bb;hpb=e47a9562e990c44cd6915cde8bab270ff41ec9d7;p=libsigrok.git 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. */