From c962e0fd295525978de0d9a0af584f47a83d9699 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 24 Jun 2014 21:47:07 -0500 Subject: 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. --- toys/pending/getty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') 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]); -- cgit v1.2.3