diff --git a/Modules/termios.c b/Modules/termios.c index d192bfc9913..cedcb0ff356 100644 --- a/Modules/termios.c +++ b/Modules/termios.c @@ -5,7 +5,11 @@ #define PyInit_termios inittermios #include +#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 +#endif #include #ifdef __BEOS__