diff options
author | itojun <itojun@pkgsrc.org> | 2002-07-04 14:05:32 +0000 |
---|---|---|
committer | itojun <itojun@pkgsrc.org> | 2002-07-04 14:05:32 +0000 |
commit | 0cb6b8c41c557ab1c0632b38f4200c8379aa54b2 (patch) | |
tree | 08f3e07e341d33a47e579d54b0ca612c4d043e77 /x11/kterm/patches | |
parent | 82eb1cbb519958efdf760e51eb92c77dd0f791d2 (diff) | |
download | pkgsrc-0cb6b8c41c557ab1c0632b38f4200c8379aa54b2.tar.gz |
use openpty() on netbsd. PR 17478
Diffstat (limited to 'x11/kterm/patches')
-rw-r--r-- | x11/kterm/patches/patch-ac | 14 | ||||
-rw-r--r-- | x11/kterm/patches/patch-ad | 24 |
2 files changed, 38 insertions, 0 deletions
diff --git a/x11/kterm/patches/patch-ac b/x11/kterm/patches/patch-ac new file mode 100644 index 00000000000..771784602ad --- /dev/null +++ b/x11/kterm/patches/patch-ac @@ -0,0 +1,14 @@ +$NetBSD: patch-ac,v 1.1 2002/07/04 14:05:33 itojun Exp $ + +--- Imakefile.orig Fri Jul 12 14:01:04 1996 ++++ Imakefile Thu Jul 4 23:03:03 2002 +@@ -23,6 +23,9 @@ + PUCCPTYDDEF = -DPUCC_PTYD /* does not need to be setuid */ + PTYLIB = -lpucc + #endif ++#ifdef NetBSDArchitecture ++ PTYLIB = -lutil ++#endif + + OSMAJORVERSION = OSMajorVersion + OSMINORVERSION = OSMinorVersion diff --git a/x11/kterm/patches/patch-ad b/x11/kterm/patches/patch-ad new file mode 100644 index 00000000000..2255b6148a5 --- /dev/null +++ b/x11/kterm/patches/patch-ad @@ -0,0 +1,24 @@ +$NetBSD: patch-ad,v 1.1 2002/07/04 14:05:33 itojun Exp $ + +--- main.c.orig Thu Jul 4 23:02:25 2002 ++++ main.c Thu Jul 4 23:03:03 2002 +@@ -392,6 +392,10 @@ + #include <locale.h> + #endif + ++#ifdef __NetBSD__ ++#include <util.h> ++#endif ++ + #ifdef SYSV + extern char *ptsname(); + #endif +@@ -1719,7 +1723,7 @@ + get_pty (pty) + int *pty; + { +-#ifdef __osf__ ++#if defined(__osf__) || defined(__NetBSD__) + int tty; + return (openpty(pty, &tty, ttydev, NULL, NULL)); + #endif |