changeset 1361:b6226bf22826 draft

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.
author Rob Landley <rob@landley.net>
date Tue, 24 Jun 2014 21:47:07 -0500
parents 46f068aaa480
children b9605ebd3af4
files toys/pending/getty.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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]);