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

Fred L. Drake fdrake@users.sourceforge.net
Wed, 09 May 2001 10:53:08 -0700


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

Modified Files:
	termios.c 
Log Message:

Only import termio.h on OSF, and add a comment about why it is needed there.
This header does not exist on all Unix flavors; FreeBSD in particular does
not include it.

This closes SF bug #422320.


Index: termios.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/termios.c,v
retrieving revision 2.25
retrieving revision 2.26
diff -C2 -r2.25 -r2.26
*** termios.c	2001/05/07 17:55:35	2.25
--- termios.c	2001/05/09 17:53:06	2.26
***************
*** 6,10 ****
--- 6,14 ----
  
  #include <termios.h>
+ #ifdef __osf__
+ /* On OSF, sys/ioctl.h requires that struct termio already be defined,
+  * so this needs to be included first on that platform. */
  #include <termio.h>
+ #endif
  #include <sys/ioctl.h>