summaryrefslogtreecommitdiffstats
path: root/Include/pyport.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-05-23 15:06:50 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2008-05-23 15:06:50 (GMT)
commit8c255e4173cfc86ff7015b8f75dccf0d41b24003 (patch)
tree16f42f4f82367420f4c70a6faf7e97a4c43579b1 /Include/pyport.h
parentbadd7da622460b8dd8405545f59da1e2c0ef79e6 (diff)
downloadcpython-8c255e4173cfc86ff7015b8f75dccf0d41b24003.zip
cpython-8c255e4173cfc86ff7015b8f75dccf0d41b24003.tar.gz
cpython-8c255e4173cfc86ff7015b8f75dccf0d41b24003.tar.bz2
Patch #1722225: Support QNX 6.
Diffstat (limited to 'Include/pyport.h')
-rw-r--r--Include/pyport.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index 4656f8c..7c684f7 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -454,6 +454,13 @@ int shutdown( int, int );
extern char * _getpty(int *, int, mode_t, int);
#endif
+/* On QNX 6, struct termio must be declared by including sys/termio.h
+ if TCGETA, TCSETA, TCSETAW, or TCSETAF are used. sys/termio.h must
+ be included before termios.h or it will generate an error. */
+#ifdef HAVE_SYS_TERMIO_H
+#include <sys/termio.h>
+#endif
+
#if defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY)
#if !defined(HAVE_PTY_H) && !defined(HAVE_LIBUTIL_H)
/* BSDI does not supply a prototype for the 'openpty' and 'forkpty'