diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-01-19 19:28:06 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-01-19 19:28:06 +0000 |
commit | 4e20cfbb93be110482ea5518f31ef31a47ff8a44 (patch) | |
tree | cbcf0447e57d63a62820353901493d2cc50621b9 /shells/viewglob/files/patch-src::ptytty.c | |
parent | - Fix plist (misuse of PORTDOCS) (diff) |
- Update to 1.0.2
- Mark IGNORE on FreeBSD 4.x, missing library functions
PR: ports/76424
Submitted by: Jean-Yves Lefort <jylefort@brutele.be> (maintainer)
Notes
Notes:
svn path=/head/; revision=126856
Diffstat (limited to 'shells/viewglob/files/patch-src::ptytty.c')
-rw-r--r-- | shells/viewglob/files/patch-src::ptytty.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/shells/viewglob/files/patch-src::ptytty.c b/shells/viewglob/files/patch-src::ptytty.c new file mode 100644 index 000000000000..29f2294732a8 --- /dev/null +++ b/shells/viewglob/files/patch-src::ptytty.c @@ -0,0 +1,22 @@ +--- src/ptytty.c.orig Fri Nov 19 07:43:59 2004 ++++ src/ptytty.c Tue Jan 18 19:26:30 2005 +@@ -48,7 +48,6 @@ + # include <sys/ioctl.h> + #endif + #if defined(PTYS_ARE_PTMX) && !defined(__CYGWIN32__) +-# include <sys/stropts.h> /* for I_PUSH */ + #endif + + +@@ -71,6 +70,11 @@ + rxvt_get_pty(int *fd_tty, const char **ttydev) + { + int pfd; ++ ++ if ((pfd = posix_openpt(O_RDWR | O_NOCTTY)) != -1) ++ *ttydev = ptsname(pfd); ++ ++ return pfd; + + #ifdef PTYS_ARE_OPENPTY + char tty_name[sizeof "/dev/pts/????\0"]; |