]> sigrok.org Git - libsigrok.git/blobdiff - src/serial.c
serial: move sr_serial_extract_options() out of "have serial comm" condition
[libsigrok.git] / src / serial.c
index 97bd3159b094f673e0db8070d87eadb960e1cab8..353b7ae14899f12d49cac0a3761469488faa971d 100644 (file)
@@ -925,6 +925,8 @@ SR_PRIV int serial_stream_detect(struct sr_serial_dev_inst *serial,
        return SR_ERR;
 }
 
+#endif
+
 /**
  * Extract the serial device and options from the options linked list.
  *
@@ -977,6 +979,8 @@ SR_PRIV int sr_serial_extract_options(GSList *options,
        return SR_OK;
 }
 
+#ifdef HAVE_SERIAL_COMM
+
 /** @private */
 SR_PRIV int serial_source_add(struct sr_session *session,
        struct sr_serial_dev_inst *serial, int events, int timeout,