diff options
author | James Clarke <jrtc27@jrtc27.com> | 2017-10-30 15:18:32 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-10-30 15:18:32 +0100 |
commit | 24e17b43858e165ba8384e2aa7403cecd899ad2d (patch) | |
tree | 458a188ceafc4a0b88320f58006668aa2145beaa | |
parent | 160d027c2110d16ad9fb541cd966f73d971c074f (diff) | |
download | busybox-w32-24e17b43858e165ba8384e2aa7403cecd899ad2d.tar.gz busybox-w32-24e17b43858e165ba8384e2aa7403cecd899ad2d.tar.bz2 busybox-w32-24e17b43858e165ba8384e2aa7403cecd899ad2d.zip |
xfuncs: Handle missing non-POSIX termios constants
Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | libbb/xfuncs.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 9cbfb2836..43ae98065 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c | |||
@@ -355,6 +355,15 @@ int FAST_FUNC get_termios_and_make_raw(int fd, struct termios *newterm, struct t | |||
355 | */ | 355 | */ |
356 | } | 356 | } |
357 | if (flags & TERMIOS_RAW_INPUT) { | 357 | if (flags & TERMIOS_RAW_INPUT) { |
358 | #ifndef IMAXBEL | ||
359 | # define IMAXBEL 0 | ||
360 | #endif | ||
361 | #ifndef IUCLC | ||
362 | # define IUCLC 0 | ||
363 | #endif | ||
364 | #ifndef IXANY | ||
365 | # define IXANY 0 | ||
366 | #endif | ||
358 | /* IXOFF=0: disable sending XON/XOFF if input buf is full */ | 367 | /* IXOFF=0: disable sending XON/XOFF if input buf is full */ |
359 | /* IXON=0: input XON/XOFF chars are not special */ | 368 | /* IXON=0: input XON/XOFF chars are not special */ |
360 | /* dont convert anything on input */ | 369 | /* dont convert anything on input */ |