Patch #787189: Explicitly define CTRL on SGI.

This commit is contained in:
Martin v. Löwis 2003-10-31 13:01:24 +00:00
parent 48440b7c27
commit be4fea6198
1 changed files with 6 additions and 0 deletions

View File

@ -4,6 +4,12 @@
#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__
/* On OSF, sys/ioctl.h requires that struct termio already be defined,