Mercurial > gftp.yaz
diff lib/pty.c @ 235:1638e32e6a35
2003-7-25 Brian Masney <masneyb@gftp.org>
* lib/gftp.h lib/pty.c - moved including of some PTY related header
files to pty.c. Hopefully should fix build problems under FreeBSD
author | masneyb |
---|---|
date | Fri, 25 Jul 2003 20:46:58 +0000 |
parents | b8d14c2c3097 |
children | 094e83b55cb1 |
line wrap: on
line diff
--- a/lib/pty.c Fri Jul 25 20:39:35 2003 +0000 +++ b/lib/pty.c Fri Jul 25 20:46:58 2003 +0000 @@ -61,6 +61,17 @@ #elif HAVE_OPENPTY +#ifdef HAVE_PTY_H +#include <pty.h> +#include <utmp.h> /* for login_tty */ +#elif HAVE_LIBUTIL_H +#include <libutil.h> +#include <utmp.h> /* for login_tty */ +#else +extern int openpty(int *amaster, int *aslave, char *name, struct termios *termp, struct winsize * winp); +extern int login_tty(int fd); +#endif + char * gftp_get_pty_impl (void) { @@ -93,6 +104,8 @@ #elif HAVE_GRANTPT +#include <stropts.h> + char * gftp_get_pty_impl (void) {