Fix compilation for non-GNU compilers

This commit is contained in:
Anton Kochkov 2017-11-27 19:36:35 +08:00
parent 4554a9e458
commit a5afb090ec

View File

@ -34,7 +34,9 @@ static int set_interface_attribs (int fd, int speed, int parity) {
tty.c_cflag &= ~(PARENB | PARODD); // shut off parity
tty.c_cflag |= parity;
tty.c_cflag &= ~CSTOPB;
#ifdef CRTSCTS
tty.c_cflag &= ~CRTSCTS;
#endif
if (tcsetattr (fd, TCSANOW, &tty) != 0) {
return -1;