From: Uwe Hermann Date: Sun, 17 Mar 2013 14:07:50 +0000 (+0100) Subject: serial.c: FreeBSD and OpenBSD don't have OFILL either. X-Git-Tag: dsupstream~240 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=cc840ab618ede3d642a1f8d07c353ba91b96e22c;p=libsigrok.git serial.c: FreeBSD and OpenBSD don't have OFILL either. --- diff --git a/hardware/common/serial.c b/hardware/common/serial.c index b7ec2da3..2980d523 100644 --- a/hardware/common/serial.c +++ b/hardware/common/serial.c @@ -592,7 +592,7 @@ 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); -#if !defined(__NetBSD__) +#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) term.c_oflag &= ~OFILL; #endif