summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-10-19 18:39:31 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-10-19 18:39:31 (GMT)
commitaa2b22abf342dd000d243512c620d5b5022381cf (patch)
tree96b88e037512d2b2178418168b4e8b426169042d
parentdd06d14a827eb7989e8a4791245d363d80bda29c (diff)
downloadcpython-aa2b22abf342dd000d243512c620d5b5022381cf.zip
cpython-aa2b22abf342dd000d243512c620d5b5022381cf.tar.gz
cpython-aa2b22abf342dd000d243512c620d5b5022381cf.tar.bz2
Restore prototypes for the 'openpty' and 'forkpty' on BSDI (broken in issue #1772673).
-rw-r--r--Include/pyport.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index 17dad41..ca20b22 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -673,10 +673,8 @@ extern char * _getpty(int *, int, mode_t, int);
/* BSDI does not supply a prototype for the 'openpty' and 'forkpty'
functions, even though they are included in libutil. */
#include <termios.h>
-extern int openpty(int *, int *, char *,
- const struct termios *, const struct winsize *);
-extern pid_t forkpty(int *, char *,
- const struct termios *, const struct winsize *);
+extern int openpty(int *, int *, char *, struct termios *, struct winsize *);
+extern pid_t forkpty(int *, char *, struct termios *, struct winsize *);
#endif /* !defined(HAVE_PTY_H) && !defined(HAVE_LIBUTIL_H) */
#endif /* defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY) */