mirror of https://github.com/python/cpython
Patch #787189: Explicitly define CTRL on SGI.
This commit is contained in:
parent
48440b7c27
commit
be4fea6198
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue