diff options
author | nork <nork@FreeBSD.org> | 2009-01-12 06:03:54 +0800 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2009-01-12 06:03:54 +0800 |
commit | 03bc2e790c0e2493295e6e09f41a9197649c8d9b (patch) | |
tree | cc51c8c7d8d9ebf1a42a959c403cb33e5dfca71f /japanese/kterm/files | |
parent | 557b6663cd498cdc6b10ae5a31a7cade3cc9cd24 (diff) | |
download | freebsd-ports-gnome-03bc2e790c0e2493295e6e09f41a9197649c8d9b.tar.gz freebsd-ports-gnome-03bc2e790c0e2493295e6e09f41a9197649c8d9b.tar.zst freebsd-ports-gnome-03bc2e790c0e2493295e6e09f41a9197649c8d9b.zip |
Use openpty(3) and Bump PORTREVISION, accodingly.
Diffstat (limited to 'japanese/kterm/files')
-rw-r--r-- | japanese/kterm/files/patch-aa | 13 | ||||
-rw-r--r-- | japanese/kterm/files/patch-main.c | 38 |
2 files changed, 45 insertions, 6 deletions
diff --git a/japanese/kterm/files/patch-aa b/japanese/kterm/files/patch-aa index d915ee0bdca4..fa9ce0249f59 100644 --- a/japanese/kterm/files/patch-aa +++ b/japanese/kterm/files/patch-aa @@ -1,5 +1,5 @@ ---- Imakefile.orig Sun Dec 13 16:59:08 1998 -+++ Imakefile Sun Dec 13 17:37:16 1998 +--- Imakefile.orig 2009-01-12 06:30:54.603258900 +0900 ++++ Imakefile 2009-01-12 06:45:23.991164903 +0900 @@ -13,6 +13,17 @@ XPOLL_DEF = -DNO_XPOLL_H #endif @@ -18,3 +18,12 @@ /* * add -DWTMP and -DLASTLOG if you want them. */ +@@ -72,7 +83,7 @@ + #endif + #endif + +- TERMCAPLIB = TermcapLibrary ++ TERMCAPLIB = TermcapLibrary -lutil + + AllTarget($(PROGRAMS)) + diff --git a/japanese/kterm/files/patch-main.c b/japanese/kterm/files/patch-main.c index 30de16b8b728..ff60ca9ddb6c 100644 --- a/japanese/kterm/files/patch-main.c +++ b/japanese/kterm/files/patch-main.c @@ -1,5 +1,5 @@ ---- main.c.orig Wed Jun 21 15:49:06 2006 -+++ main.c Wed Jun 21 15:50:17 2006 +--- main.c.orig 2009-01-12 06:02:34.419192340 +0900 ++++ main.c 2009-01-12 06:29:01.427571571 +0900 @@ -210,7 +210,9 @@ #undef FIOCLEX #undef FIONCLEX @@ -19,7 +19,18 @@ #include <sgtty.h> #endif #include <sys/resource.h> -@@ -1355,6 +1357,8 @@ +@@ -319,6 +321,10 @@ + int Ptyfd; + #endif /* PUCC_PTYD */ + ++#ifdef __FreeBSD__ ++#include <libutil.h> /* openpty() */ ++#endif ++ + #ifdef sequent + #define USE_GET_PSEUDOTTY + #endif +@@ -1355,6 +1361,8 @@ d_tio.c_cc[VDISCARD] = CFLUSH; d_tio.c_cc[VWERASE] = CWERASE; d_tio.c_cc[VLNEXT] = CLNEXT; @@ -28,7 +39,7 @@ #endif /* } */ #ifdef TIOCSLTC /* { */ d_ltc.t_suspc = CSUSP; /* t_suspc */ -@@ -1403,6 +1407,8 @@ +@@ -1403,6 +1411,8 @@ d_tio.c_cc[VQUIT] = CQUIT; /* '^\' */ d_tio.c_cc[VEOF] = CEOF; /* '^D' */ d_tio.c_cc[VEOL] = CEOL; /* '^@' */ @@ -37,3 +48,22 @@ #ifdef VSWTCH d_tio.c_cc[VSWTCH] = CSWTCH; /* usually '^Z' */ #endif +@@ -1963,6 +1973,10 @@ + get_pty (pty) + int *pty; + { ++#if 1 ++ int tty; ++ return (openpty(pty, &tty, ttydev, NULL, NULL)); ++#else + #ifdef __osf__ + int tty; + return (openpty(pty, &tty, ttydev, NULL, NULL)); +@@ -2066,6 +2080,7 @@ + #endif /* __sgi or umips else */ + #endif /* USE_GET_PSEUDOTTY else */ + #endif /* ATT else */ ++#endif /* !0 */ + } + + /* |