Mercurial > gftp.yaz
diff lib/gftp.h @ 178:8beb7bfca92b
2003-6-11 Brian Masney <masneyb@gftp.org>
* lib/configure.in lib/gftp.h - portability fix for openpty(). (from
Nathan Robertson <nathanr@nathanr.net>, which he took from
http://mail.python.org/pipermail/patches/2000-June/000953.html)
* lib/pty.h - found out about #elif preprocessor macro ;)
author | masneyb |
---|---|
date | Wed, 11 Jun 2003 22:02:26 +0000 |
parents | aec4b4541d3a |
children | 8d933999bba6 |
line wrap: on
line diff
--- a/lib/gftp.h Tue Jun 10 12:03:54 2003 +0000 +++ b/lib/gftp.h Wed Jun 11 22:02:26 2003 +0000 @@ -88,8 +88,12 @@ #define AF_LOCAL AF_UNIX #endif -#ifdef HAVE_OPENPTY +#ifdef HAVE_PTY_H #include <pty.h> +#elif HAVE_LIBUTIL_H +#include <libutil.h> +#else +extern int openpty(int *amaster, int *aslave, char *name, struct termios *termp, struct winsize * winp); #endif #ifdef HAVE_GETADDRINFO