[Python-checkins] python/dist/src/Modules termios.c,2.37,2.38

loewis at users.sourceforge.net loewis at users.sourceforge.net
Fri Oct 31 08:01:26 EST 2003


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

Modified Files:
	termios.c 
Log Message:
Patch #787189: Explicitly define CTRL on SGI.


Index: termios.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/termios.c,v
retrieving revision 2.37
retrieving revision 2.38
diff -C2 -d -r2.37 -r2.38
*** termios.c	23 May 2003 14:35:24 -0000	2.37
--- termios.c	31 Oct 2003 13:01:24 -0000	2.38
***************
*** 5,8 ****
--- 5,14 ----
  #define PyInit_termios inittermios
  
+ /* Apparently, on SGI, termios.h won't define CTRL if _XOPEN_SOURCE
+    is defined, so we define it here. */
+ #if defined(__sgi)
+ #define CTRL(c) ((c)&037)
+ #endif
+ 
  #include <termios.h>
  #ifdef __osf__





More information about the Python-checkins mailing list