[Python-checkins] cpython: Restore prototypes for the 'openpty' and 'forkpty' on BSDI (broken in issue

serhiy.storchaka python-checkins at python.org
Sat Oct 19 20:39:54 CEST 2013


http://hg.python.org/cpython/rev/8bd69bd6e129
changeset:   86488:8bd69bd6e129
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Sat Oct 19 21:39:31 2013 +0300
summary:
  Restore prototypes for the 'openpty' and 'forkpty' on BSDI (broken in issue #1772673).

files:
  Include/pyport.h |  6 ++----
  1 files changed, 2 insertions(+), 4 deletions(-)


diff --git a/Include/pyport.h b/Include/pyport.h
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -673,10 +673,8 @@
 /* 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) */
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list