X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fserial.c;h=353b7ae14899f12d49cac0a3761469488faa971d;hb=7fd8a8f7e9f8a82e732e19abff86433e0364724b;hp=97bd3159b094f673e0db8070d87eadb960e1cab8;hpb=fb28e72dfdea0d985e03795f1f058aa4621e7e55;p=libsigrok.git diff --git a/src/serial.c b/src/serial.c index 97bd3159..353b7ae1 100644 --- a/src/serial.c +++ b/src/serial.c @@ -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,