X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fscpi%2Fscpi_serial.c;fp=src%2Fscpi%2Fscpi_serial.c;h=c73d1b4841a70ae434f50a6222d3555d881828ee;hb=48b7c3462927616916a1296c862e96e3a36c2a80;hp=96fb70d60658883e0473349a66155239a86fe2c6;hpb=1ac8c2181b0390c601278ad05bab93dd1c801734;p=libsigrok.git diff --git a/src/scpi/scpi_serial.c b/src/scpi/scpi_serial.c index 96fb70d6..c73d1b48 100644 --- a/src/scpi/scpi_serial.c +++ b/src/scpi/scpi_serial.c @@ -28,6 +28,8 @@ #define LOG_PREFIX "scpi_serial" +#ifdef HAVE_SERIAL_COMM + struct scpi_serial { struct sr_serial_dev_inst *serial; gboolean got_newline; @@ -214,3 +216,5 @@ SR_PRIV const struct sr_scpi_dev_inst scpi_serial_dev = { .close = scpi_serial_close, .free = scpi_serial_free, }; + +#endif