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

This commit is contained in:
Serhiy Storchaka 2013-10-19 21:39:31 +03:00
parent dd06d14a82
commit aa2b22abf3
1 changed files with 2 additions and 4 deletions

View File

@ -673,10 +673,8 @@ extern char * _getpty(int *, int, mode_t, int);
/* BSDI does not supply a prototype for the 'openpty' and 'forkpty' /* BSDI does not supply a prototype for the 'openpty' and 'forkpty'
functions, even though they are included in libutil. */ functions, even though they are included in libutil. */
#include <termios.h> #include <termios.h>
extern int openpty(int *, int *, char *, extern int openpty(int *, int *, char *, struct termios *, struct winsize *);
const struct termios *, const struct winsize *); extern pid_t forkpty(int *, char *, struct termios *, struct winsize *);
extern pid_t forkpty(int *, char *,
const struct termios *, const struct winsize *);
#endif /* !defined(HAVE_PTY_H) && !defined(HAVE_LIBUTIL_H) */ #endif /* !defined(HAVE_PTY_H) && !defined(HAVE_LIBUTIL_H) */
#endif /* defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY) */ #endif /* defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY) */