OSDN Git Service

Glibc and uClibc provide CERASE from termios.h, but musl requies you to #include...
authorRob Landley <rob@landley.net>
Wed, 25 Jun 2014 02:47:07 +0000 (21:47 -0500)
committerRob Landley <rob@landley.net>
Wed, 25 Jun 2014 02:47:07 +0000 (21:47 -0500)
toys/pending/getty.c

index a3f665d..0cfd750 100644 (file)
@@ -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]);