projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
160d027
)
xfuncs: Handle missing non-POSIX termios constants
author
James Clarke
<jrtc27@jrtc27.com>
Mon, 30 Oct 2017 14:18:32 +0000
(15:18 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 30 Oct 2017 14:18:32 +0000
(15:18 +0100)
Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/xfuncs.c
patch
|
blob
|
history
diff --git
a/libbb/xfuncs.c
b/libbb/xfuncs.c
index 9cbfb2836ad2b8f074086852940c05412583cffe..43ae980656cb181aaca66d63f48528f3f1bf2fbe 100644
(file)
--- 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 */