X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fserial.c;h=353b7ae14899f12d49cac0a3761469488faa971d;hb=d8fbfcd9d6d66bffcb8607e9de7706ce322d42c7;hp=97bd3159b094f673e0db8070d87eadb960e1cab8;hpb=9d6a896014ae88645d72287bf09a0de2925c532b;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,