Patch #787189: Explicitly define CTRL on SGI.
This commit is contained in:
parent
48440b7c27
commit
be4fea6198
|
@ -4,6 +4,12 @@
|
||||||
|
|
||||||
#define PyInit_termios inittermios
|
#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>
|
#include <termios.h>
|
||||||
#ifdef __osf__
|
#ifdef __osf__
|
||||||
/* On OSF, sys/ioctl.h requires that struct termio already be defined,
|
/* On OSF, sys/ioctl.h requires that struct termio already be defined,
|
||||||
|
|
Loading…
Reference in New Issue