From cbe22e189a355f19eb1344fcaf91bc2bb0b95f36 Mon Sep 17 00:00:00 2001 From: Pascal Obry Date: Sat, 7 Nov 2020 10:31:43 +0100 Subject: [PATCH] [Ada] Add some OS constants to control serial port gcc/ada/ * s-oscons-tmplt.c: Add some OS constants. --- gcc/ada/s-oscons-tmplt.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c index bce5437c6dc..582c35ef7db 100644 --- a/gcc/ada/s-oscons-tmplt.c +++ b/gcc/ada/s-oscons-tmplt.c @@ -724,6 +724,41 @@ CNU(CRTSCTS, "Output hw flow control") #endif CNU(CREAD, "Read") +#ifndef ICANON +# define ICANON -1 +#endif +CNU(ICANON, "canonical mode") + +#ifndef CBAUD +# define CBAUD -1 +#endif +CNU(CBAUD, "baud speed mask") + +#ifndef ECHO +# define ECHO -1 +#endif +CNU(ECHO, "echo input characters") + +#ifndef ECHOE +# define ECHOE -1 +#endif +CNU(ECHOE, "erase preceding characters") + +#ifndef ECHOK +# define ECHOK -1 +#endif +CNU(ECHOK, "kill character, erases current line") + +#ifndef ECHOCTL +# define ECHOCTL -1 +#endif +CNU(ECHOCTL, "echo special characters") + +#ifndef ECHONL +# define ECHONL -1 +#endif +CNU(ECHONL, "force echo NL character") + #ifndef CS5 # define CS5 -1 #endif -- 2.30.2