mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-02 19:55:14 +00:00
Fix compilation for non-GNU compilers
This commit is contained in:
parent
4554a9e458
commit
a5afb090ec
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user