From: Uwe Hermann Date: Sun, 27 Jan 2013 00:23:01 +0000 (+0100) Subject: serial.c: NetBSD doesn't have OFILL. X-Git-Tag: dsupstream~300 X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=7d4abe5a77b39c11b2187e1768339fcd11b0b763;p=libsigrok.git serial.c: NetBSD doesn't have OFILL. --- 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);