diff options
author | Thomas Wouters <thomas@python.org> | 2001-06-15 11:58:49 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2001-06-15 11:58:49 (GMT) |
commit | 458004a50d31840f1671343d7e676d29ce5eb3d8 (patch) | |
tree | 06db3efd52f510931eb62f9a79d2a8c7e554d0c3 | |
parent | 76ce2aaab526da85e26e59f9c0f977f79da36682 (diff) | |
download | cpython-458004a50d31840f1671343d7e676d29ce5eb3d8.zip cpython-458004a50d31840f1671343d7e676d29ce5eb3d8.tar.gz cpython-458004a50d31840f1671343d7e676d29ce5eb3d8.tar.bz2 |
Protect several more uses of constants with #ifdefs; these are necessary on
(at least) SCO OpenServer 5. Fixes a non-SF-submitted bugreport by Michael
Kent.
-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 54d72b2..2c70a3b 100644 --- a/Modules/termios.c +++ b/Modules/termios.c @@ -379,7 +379,9 @@ static struct constant { {"IXON", IXON}, {"IXANY", IXANY}, {"IXOFF", IXOFF}, +#ifdef IMAXBEL {"IMAXBEL", IMAXBEL}, +#endif /* struct termios.c_oflag constants */ {"OPOST", OPOST}, @@ -505,12 +507,18 @@ static struct constant { {"ECHOE", ECHOE}, {"ECHOK", ECHOK}, {"ECHONL", ECHONL}, +#ifdef ECHOCTL {"ECHOCTL", ECHOCTL}, +#endif #ifdef ECHOPRT {"ECHOPRT", ECHOPRT}, #endif +#ifdef ECHOKE {"ECHOKE", ECHOKE}, +#endif +#endif FLUSHO {"FLUSHO", FLUSHO}, +#endif {"NOFLSH", NOFLSH}, {"TOSTOP", TOSTOP}, #ifdef PENDIN @@ -545,7 +553,9 @@ static struct constant { #ifdef VWERASE {"VWERASE", VWERASE}, #endif +#ifdef VLNEXT {"VLNEXT", VLNEXT}, +#endif {"VEOL2", VEOL2}, |