[Python-checkins] CVS: python/dist/src/Modules termios.c,2.24.2.3,2.24.2.4

Thomas Wouters twouters@users.sourceforge.net
Fri, 15 Jun 2001 04:58:51 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv18439

Modified Files:
      Tag: release21-maint
	termios.c 
Log Message:

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.24.2.3
retrieving revision 2.24.2.4
diff -C2 -r2.24.2.3 -r2.24.2.4
*** termios.c	2001/06/11 15:21:43	2.24.2.3
--- termios.c	2001/06/15 11:58:49	2.24.2.4
***************
*** 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
+ #endif FLUSHO
  	{"FLUSHO", FLUSHO},
+ #endif
  	{"NOFLSH", NOFLSH},
  	{"TOSTOP", TOSTOP},
***************
*** 546,550 ****
--- 554,560 ----
  	{"VWERASE", VWERASE},
  #endif
+ #ifdef VLNEXT
  	{"VLNEXT", VLNEXT},
+ #endif
  	{"VEOL2", VEOL2},