xfuncs: Handle missing non-POSIX termios constants

Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
James Clarke 2017-10-30 15:18:32 +01:00 committed by Denys Vlasenko
parent 160d027c21
commit 24e17b4385

View File

@ -355,6 +355,15 @@ int FAST_FUNC get_termios_and_make_raw(int fd, struct termios *newterm, struct t
*/
}
if (flags & TERMIOS_RAW_INPUT) {
#ifndef IMAXBEL
# define IMAXBEL 0
#endif
#ifndef IUCLC
# define IUCLC 0
#endif
#ifndef IXANY
# define IXANY 0
#endif
/* IXOFF=0: disable sending XON/XOFF if input buf is full */
/* IXON=0: input XON/XOFF chars are not special */
/* dont convert anything on input */