comgt: drop the use of the non-standard XCASE termios flag (#18186)
[openwrt/openwrt.git] / package / network / utils / comgt / patches / 003-no_XCASE.patch
1 --- a/comgt.c
2 +++ b/comgt.c
3 @@ -1281,7 +1281,7 @@ void opengt(void) {
4 parity=stbuf.c_cflag & (PARENB | PARODD);
5 stbuf.c_iflag &= ~(IGNCR | ICRNL | IUCLC | INPCK | IXON | IXANY | IGNPAR );
6 stbuf.c_oflag &= ~(OPOST | OLCUC | OCRNL | ONLCR | ONLRET);
7 - stbuf.c_lflag &= ~(ICANON | XCASE | ECHO | ECHOE | ECHONL);
8 + stbuf.c_lflag &= ~(ICANON | ECHO | ECHOE | ECHONL);
9 stbuf.c_lflag &= ~(ECHO | ECHOE);
10 stbuf.c_cc[VMIN] = 1;
11 stbuf.c_cc[VTIME] = 0;
12 @@ -1336,7 +1336,7 @@ void opendevice(void) {
13 parity=stbuf.c_cflag & (PARENB | PARODD);
14 stbuf.c_iflag &= ~(IGNCR | ICRNL | IUCLC | INPCK | IXON | IXANY | IGNPAR );
15 stbuf.c_oflag &= ~(OPOST | OLCUC | OCRNL | ONLCR | ONLRET);
16 - stbuf.c_lflag &= ~(ICANON | XCASE | ECHO | ECHOE | ECHONL);
17 + stbuf.c_lflag &= ~(ICANON | ECHO | ECHOE | ECHONL);
18 stbuf.c_lflag &= ~(ECHO | ECHOE);
19 stbuf.c_cc[VMIN] = 1;
20 stbuf.c_cc[VTIME] = 0;