Mercurial > gftp.yaz
diff lib/pty.c @ 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 | 782f84694489 |
children | 8d933999bba6 |
line wrap: on
line diff
--- a/lib/pty.c Tue Jun 10 12:03:54 2003 +0000 +++ b/lib/pty.c Wed Jun 11 22:02:26 2003 +0000 @@ -41,9 +41,7 @@ return (0); } -#else /* !__sgi */ - -#ifdef HAVE_GRANTPT +#elif HAVE_GRANTPT int open_ptys (gftp_request * request, int *fdm, int *fds) @@ -85,9 +83,7 @@ return (0); } -#else /* !HAVE_GRANTPT */ - -#ifdef HAVE_OPENPTY +#elif HAVE_OPENPTY int open_ptys (gftp_request * request, int *fdm, int *fds) @@ -142,10 +138,6 @@ return (GFTP_ERETRYABLE); } -#endif /* HAVE_OPENPTY */ - -#endif /* HAVE_GRANTPT */ - #endif /* __sgi */