Commit abb379e1 authored by Fred Drake's avatar Fred Drake

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.
parent 5c015344
......@@ -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() */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment