OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0aad9e4
)
Glibc and uClibc provide CERASE from termios.h, but musl requies you to #include...
author
Rob Landley
<rob@landley.net>
Wed, 25 Jun 2014 02:47:07 +0000
(21:47 -0500)
committer
Rob Landley
<rob@landley.net>
Wed, 25 Jun 2014 02:47:07 +0000
(21:47 -0500)
toys/pending/getty.c
patch
|
blob
|
history
diff --git
a/toys/pending/getty.c
b/toys/pending/getty.c
index
a3f665d
..
0cfd750
100644
(file)
--- a/
toys/pending/getty.c
+++ b/
toys/pending/getty.c
@@
-165,7
+165,7
@@
static void termios_init(void)
TT.termios.c_cc[VEOF] = CTL('D');
TT.termios.c_cc[VEOL] = '\n';
TT.termios.c_cc[VKILL] = CTL('U');
- TT.termios.c_cc[VERASE] =
CERASE;
+ TT.termios.c_cc[VERASE] =
127; // CERASE
TT.termios.c_iflag = ICRNL|IXON|IXOFF;
// set non-zero baud rate. Zero baud rate left it unchanged.
if (TT.speeds[0] != B0) cfsetspeed(&TT.termios, TT.speeds[0]);