From: Fred Drake Date: Wed, 9 May 2001 17:53:06 +0000 (+0000) Subject: Only import termio.h on OSF, and add a comment about why it is needed there. X-Git-Tag: v2.2a3~1867 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b2877dd12237803bd5d249c73641b063ddbbd3a4;p=thirdparty%2FPython%2Fcpython.git Only import termio.h on OSF, and add a comment about why it is needed there. This header does not exist on all Unix flavors; FreeBSD in particular does not include it. This closes SF bug #422320. --- diff --git a/Modules/termios.c b/Modules/termios.c index d192bfc99133..cedcb0ff3563 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__