Kaydet (Commit) aa2b22ab authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

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

üst dd06d14a
......@@ -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) */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment