summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-05-09 17:53:06 (GMT)
committerFred Drake <fdrake@acm.org>2001-05-09 17:53:06 (GMT)
commitb2877dd12237803bd5d249c73641b063ddbbd3a4 (patch)
treedb2c67c3f00897aaadd92c5de9e1e4e734654b1b /Modules
parentb8ac0096b223ce6912d883884ad175d24ac40f15 (diff)
downloadcpython-b2877dd12237803bd5d249c73641b063ddbbd3a4.zip
cpython-b2877dd12237803bd5d249c73641b063ddbbd3a4.tar.gz
cpython-b2877dd12237803bd5d249c73641b063ddbbd3a4.tar.bz2
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.
Diffstat (limited to 'Modules')
-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__