[Python-checkins] python/dist/src/Modules termios.c,2.37,2.37.8.1
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Fri Oct 31 08:01:11 EST 2003
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv6862/Modules
Modified Files:
Tag: release23-maint
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.37.8.1
diff -C2 -d -r2.37 -r2.37.8.1
*** termios.c 23 May 2003 14:35:24 -0000 2.37
--- termios.c 31 Oct 2003 13:01:08 -0000 2.37.8.1
***************
*** 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