# HG changeset patch # User Rob Landley # Date 1403664427 18000 # Node ID b6226bf228269f53c75be9192d1909643c0f7d61 # Parent 46f068aaa480757850cdbf45324305e936c6285a 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. diff -r 46f068aaa480 -r b6226bf22826 toys/pending/getty.c --- a/toys/pending/getty.c Tue Jun 24 08:19:24 2014 -0500 +++ b/toys/pending/getty.c Tue Jun 24 21:47:07 2014 -0500 @@ -165,7 +165,7 @@ 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]);