From abb379e189f97e9266b6a6ff95f3b0b4b374cb36 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 1 Mar 2001 03:28:08 +0000 Subject: Revised version of Jason Tishler's patch to make this compile on Cygwin, which does not define all the constants. This closes SF tracker patch #404924. --- Modules/termios.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Modules/termios.c b/Modules/termios.c index 7f41252..4ec0a36 100644 --- a/Modules/termios.c +++ b/Modules/termios.c @@ -317,7 +317,9 @@ static struct constant { {"B38400", B38400}, {"B57600", B57600}, {"B115200", B115200}, +#ifdef B230400 {"B230400", B230400}, +#endif {"CBAUDEX", CBAUDEX}, /* tcsetattr() constants */ @@ -395,7 +397,9 @@ static struct constant { {"PARODD", PARODD}, {"HUPCL", HUPCL}, {"CLOCAL", CLOCAL}, +#ifdef CIBAUD {"CIBAUD", CIBAUD}, +#endif {"CRTSCTS", CRTSCTS}, /* struct termios.c_cflag-related values (character size) */ @@ -407,18 +411,24 @@ static struct constant { /* struct termios.c_lflag constants */ {"ISIG", ISIG}, {"ICANON", ICANON}, +#ifdef XCASE {"XCASE", XCASE}, +#endif {"ECHO", ECHO}, {"ECHOE", ECHOE}, {"ECHOK", ECHOK}, {"ECHONL", ECHONL}, {"ECHOCTL", ECHOCTL}, +#ifdef ECHOPRT {"ECHOPRT", ECHOPRT}, +#endif {"ECHOKE", ECHOKE}, {"FLUSHO", FLUSHO}, {"NOFLSH", NOFLSH}, {"TOSTOP", TOSTOP}, +#ifdef PENDIN {"PENDIN", PENDIN}, +#endif {"IEXTEN", IEXTEN}, /* indexes into the control chars array returned by tcgetattr() */ -- cgit v0.12