[git commit] xfuncs: Handle missing non-POSIX termios constants

Denys Vlasenko vda.linux at googlemail.com
Mon Oct 30 14:18:32 UTC 2017


commit: https://git.busybox.net/busybox/commit/?id=24e17b43858e165ba8384e2aa7403cecd899ad2d
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: James Clarke <jrtc27 at jrtc27.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 libbb/xfuncs.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 9cbfb28..43ae980 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
 		 */
 	}
 	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 */


More information about the busybox-cvs mailing list