cpython: 8bd69bd6e129 (original) (raw)

Mercurial > cpython

changeset 86488:8bd69bd6e129

Restore prototypes for the 'openpty' and 'forkpty' on BSDI (broken in issue #1772673). [#1772673]

Serhiy Storchaka storchaka@gmail.com
date Sat, 19 Oct 2013 21:39:31 +0300
parents 53c4b7132a19
children 685e044bed5e
files Include/pyport.h
diffstat 1 files changed, 2 insertions(+), 4 deletions(-)[+] [-] Include/pyport.h 6

line wrap: on

line diff

--- a/Include/pyport.h +++ b/Include/pyport.h @@ -673,10 +673,8 @@ extern char * _getpty(int , int, mode_t / 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 *,

-extern pid_t forkpty(int *, char *,

+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) */