mirror of
https://github.com/python/cpython.git
synced 2025-08-23 18:24:46 +00:00
Forward-port revision 2.24.2.4 from the release21-maint branch:
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.
This commit is contained in:
parent
b2697005e2
commit
2b30524ea9
1 changed files with 10 additions and 0 deletions
|
@ -379,7 +379,9 @@ static struct constant {
|
||||||
{"IXON", IXON},
|
{"IXON", IXON},
|
||||||
{"IXANY", IXANY},
|
{"IXANY", IXANY},
|
||||||
{"IXOFF", IXOFF},
|
{"IXOFF", IXOFF},
|
||||||
|
#ifdef IMAXBEL
|
||||||
{"IMAXBEL", IMAXBEL},
|
{"IMAXBEL", IMAXBEL},
|
||||||
|
#endif
|
||||||
|
|
||||||
/* struct termios.c_oflag constants */
|
/* struct termios.c_oflag constants */
|
||||||
{"OPOST", OPOST},
|
{"OPOST", OPOST},
|
||||||
|
@ -505,12 +507,18 @@ static struct constant {
|
||||||
{"ECHOE", ECHOE},
|
{"ECHOE", ECHOE},
|
||||||
{"ECHOK", ECHOK},
|
{"ECHOK", ECHOK},
|
||||||
{"ECHONL", ECHONL},
|
{"ECHONL", ECHONL},
|
||||||
|
#ifdef ECHOCTL
|
||||||
{"ECHOCTL", ECHOCTL},
|
{"ECHOCTL", ECHOCTL},
|
||||||
|
#endif
|
||||||
#ifdef ECHOPRT
|
#ifdef ECHOPRT
|
||||||
{"ECHOPRT", ECHOPRT},
|
{"ECHOPRT", ECHOPRT},
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef ECHOKE
|
||||||
{"ECHOKE", ECHOKE},
|
{"ECHOKE", ECHOKE},
|
||||||
|
#endif
|
||||||
|
#ifdef FLUSHO
|
||||||
{"FLUSHO", FLUSHO},
|
{"FLUSHO", FLUSHO},
|
||||||
|
#endif
|
||||||
{"NOFLSH", NOFLSH},
|
{"NOFLSH", NOFLSH},
|
||||||
{"TOSTOP", TOSTOP},
|
{"TOSTOP", TOSTOP},
|
||||||
#ifdef PENDIN
|
#ifdef PENDIN
|
||||||
|
@ -545,7 +553,9 @@ static struct constant {
|
||||||
#ifdef VWERASE
|
#ifdef VWERASE
|
||||||
{"VWERASE", VWERASE},
|
{"VWERASE", VWERASE},
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef VLNEXT
|
||||||
{"VLNEXT", VLNEXT},
|
{"VLNEXT", VLNEXT},
|
||||||
|
#endif
|
||||||
{"VEOL2", VEOL2},
|
{"VEOL2", VEOL2},
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue