aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/getty.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-06-24 21:47:07 -0500
committerRob Landley <rob@landley.net>2014-06-24 21:47:07 -0500
commitc962e0fd295525978de0d9a0af584f47a83d9699 (patch)
tree936a46bd17053617e2c014707beddaa6ebf8d810 /toys/pending/getty.c
parent0aad9e4395c3077ed82c58981e9495586d6c8a01 (diff)
downloadtoybox-c962e0fd295525978de0d9a0af584f47a83d9699.tar.gz
Glibc and uClibc provide CERASE from termios.h, but musl requies you to #include a non-posix header and the maintainer considers this a feature. So just use the constant directly.
Diffstat (limited to 'toys/pending/getty.c')
-rw-r--r--toys/pending/getty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/getty.c b/toys/pending/getty.c
index a3f665d8..0cfd750c 100644
--- 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]);