diff options
author | Fred Drake <fdrake@acm.org> | 2001-03-01 03:28:08 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-03-01 03:28:08 (GMT) |
commit | abb379e189f97e9266b6a6ff95f3b0b4b374cb36 (patch) | |
tree | ee00ab3ac291ff3b926268476bc72fa836137650 /Modules | |
parent | 5c015344a69d2c3e047831d2169f4fd842e27531 (diff) | |
download | cpython-abb379e189f97e9266b6a6ff95f3b0b4b374cb36.zip cpython-abb379e189f97e9266b6a6ff95f3b0b4b374cb36.tar.gz cpython-abb379e189f97e9266b6a6ff95f3b0b4b374cb36.tar.bz2 |
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.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/termios.c | 10 |
1 files changed, 10 insertions, 0 deletions
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() */ |