summaryrefslogtreecommitdiff
path: root/Modules/termios.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-05-23 14:35:24 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2003-05-23 14:35:24 +0000
commit8225103d2d381991703970dc601ef83a12da7fc5 (patch)
treeb8be6772f9e64dd8ebe88b4f6a783a9544829c4f /Modules/termios.c
parent661a9e3e5b79e03f912038bd56d8638f9ba5a804 (diff)
downloadcpython-git-8225103d2d381991703970dc601ef83a12da7fc5.tar.gz
Get test_ioctl to pass on HPUX 11.
TIOCGPGRP and many other definitions come from bsdtty.h, so it needs to be included at least on HPUX.
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 3ace25c4e1..7e4eb7ba8d 100644
--- a/Modules/termios.c
+++ b/Modules/termios.c
@@ -19,6 +19,10 @@
#ifdef HAVE_SYS_MODEM_H
#include <sys/modem.h>
#endif
+/* HP-UX requires that this be included to pick up TIOCGPGRP and friends */
+#ifdef HAVE_SYS_BSDTTY_H
+#include <sys/bsdtty.h>
+#endif
PyDoc_STRVAR(termios__doc__,
"This module provides an interface to the Posix calls for tty I/O control.\n\