[Python-checkins] CVS: python/dist/src/Modules termios.c,2.30,2.31
Thomas Wouters
twouters@users.sourceforge.net
2001年6月15日 05:05:46 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv19567
Modified Files:
termios.c
Log Message:
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.
Index: termios.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/termios.c,v
retrieving revision 2.30
retrieving revision 2.31
diff -C2 -r2.30 -r2.31
*** termios.c 2001年06月11日 15:25:16 2.30
--- termios.c 2001年06月15日 12:05:44 2.31
***************
*** 380,384 ****
--- 380,386 ----
{"IXANY", IXANY},
{"IXOFF", IXOFF},
+ #ifdef IMAXBEL
{"IMAXBEL", IMAXBEL},
+ #endif
/* struct termios.c_oflag constants */
***************
*** 506,515 ****
--- 508,523 ----
{"ECHOK", ECHOK},
{"ECHONL", ECHONL},
+ #ifdef ECHOCTL
{"ECHOCTL", ECHOCTL},
+ #endif
#ifdef ECHOPRT
{"ECHOPRT", ECHOPRT},
#endif
+ #ifdef ECHOKE
{"ECHOKE", ECHOKE},
+ #endif
+ #ifdef FLUSHO
{"FLUSHO", FLUSHO},
+ #endif
{"NOFLSH", NOFLSH},
{"TOSTOP", TOSTOP},
***************
*** 546,550 ****
--- 554,560 ----
{"VWERASE", VWERASE},
#endif
+ #ifdef VLNEXT
{"VLNEXT", VLNEXT},
+ #endif
{"VEOL2", VEOL2},