summaryrefslogtreecommitdiffstats
path: root/Modules/termios.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/termios.c')
-rw-r--r--Modules/termios.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/termios.c b/Modules/termios.c
index d192bfc..cedcb0f 100644
--- a/Modules/termios.c
+++ b/Modules/termios.c
@@ -5,7 +5,11 @@
#define PyInit_termios inittermios
#include <termios.h>
+#ifdef __osf__
+/* On OSF, sys/ioctl.h requires that struct termio already be defined,
+ * so this needs to be included first on that platform. */
#include <termio.h>
+#endif
#include <sys/ioctl.h>
#ifdef __BEOS__