X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fcommon%2Fserial.c;h=b7ec2da3fe7d491ab946eb45b5a12d1e7cc00103;hb=c7142604a2d29ca58f6e4d7cba070a329030e60b;hp=e32c0f1e2656571f6d564e6bebd76d89f5c13aad;hpb=b1a051544d502f15a1da05682e625755563b86c2;p=libsigrok.git diff --git a/hardware/common/serial.c b/hardware/common/serial.c index e32c0f1e..b7ec2da3 100644 --- a/hardware/common/serial.c +++ b/hardware/common/serial.c @@ -591,7 +591,10 @@ SR_PRIV int serial_set_params(struct sr_serial_dev_inst *serial, int baudrate, /* Turn off all serial port cooking. */ term.c_iflag &= ~(ISTRIP | INLCR | ICRNL); - term.c_oflag &= ~(ONLCR | OCRNL | ONOCR | OFILL ); + term.c_oflag &= ~(ONLCR | OCRNL | ONOCR); +#if !defined(__NetBSD__) + term.c_oflag &= ~OFILL; +#endif /* Disable canonical mode, and don't echo input characters. */ term.c_lflag &= ~(ICANON | ECHO);