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

Fred L. Drake fdrake@users.sourceforge.net
Fri, 11 May 2001 09:14:19 -0700


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

Modified Files:
	termios.c 
Log Message:

Include sys/modem.h if we have it; this is needed on HP-UX to provide
constants used by other macros from the headers.

Conditionalize VREPRINT and VDISCARD; these are not available on HP-UX.

This closes bug #417418.


Index: termios.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/termios.c,v
retrieving revision 2.27
retrieving revision 2.28
diff -C2 -r2.27 -r2.28
*** termios.c	2001/05/09 20:14:09	2.27
--- termios.c	2001/05/11 16:14:17	2.28
***************
*** 17,20 ****
--- 17,28 ----
  #endif
  
+ /* HP-UX requires that this be included to pick up MDCD, MCTS, MDSR,
+  * MDTR, MRI, and MRTS (appearantly used internally by some things
+  * defined as macros; these are not used here directly).
+  */
+ #ifdef HAVE_SYS_MODEM_H
+ #include <sys/modem.h>
+ #endif
+ 
  static char termios__doc__[] = "\
  This module provides an interface to the Posix calls for tty I/O control.\n\
***************
*** 529,534 ****
--- 537,546 ----
  	{"VSUSP", VSUSP},
  	{"VEOL", VEOL},
+ #ifndef VREPRINT
  	{"VREPRINT", VREPRINT},
+ #endif
+ #ifndef VDISCARD
  	{"VDISCARD", VDISCARD},
+ #endif
  	{"VWERASE", VWERASE},
  	{"VLNEXT", VLNEXT},