aboutsummaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r--libbb/xfuncs.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 0dfb3e2d9..43ae98065 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -8,7 +8,6 @@
8 * 8 *
9 * Licensed under GPLv2, see file LICENSE in this source tree. 9 * Licensed under GPLv2, see file LICENSE in this source tree.
10 */ 10 */
11
12/* We need to have separate xfuncs.c and xfuncs_printf.c because 11/* We need to have separate xfuncs.c and xfuncs_printf.c because
13 * with current linkers, even with section garbage collection, 12 * with current linkers, even with section garbage collection,
14 * if *.o module references any of XXXprintf functions, you pull in 13 * if *.o module references any of XXXprintf functions, you pull in
@@ -21,7 +20,6 @@
21 * 20 *
22 * TODO: move xmalloc() and xatonum() here. 21 * TODO: move xmalloc() and xatonum() here.
23 */ 22 */
24
25#include "libbb.h" 23#include "libbb.h"
26 24
27/* Turn on nonblocking I/O on a fd */ 25/* Turn on nonblocking I/O on a fd */
@@ -357,6 +355,15 @@ int FAST_FUNC get_termios_and_make_raw(int fd, struct termios *newterm, struct t
357 */ 355 */
358 } 356 }
359 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
360 /* IXOFF=0: disable sending XON/XOFF if input buf is full */ 367 /* IXOFF=0: disable sending XON/XOFF if input buf is full */
361 /* IXON=0: input XON/XOFF chars are not special */ 368 /* IXON=0: input XON/XOFF chars are not special */
362 /* dont convert anything on input */ 369 /* dont convert anything on input */