diff options
Diffstat (limited to 'x11-terms/kterm/files/kterm-6.2.0-openpty.patch')
-rw-r--r-- | x11-terms/kterm/files/kterm-6.2.0-openpty.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/x11-terms/kterm/files/kterm-6.2.0-openpty.patch b/x11-terms/kterm/files/kterm-6.2.0-openpty.patch new file mode 100644 index 000000000000..ee8bc1814ae0 --- /dev/null +++ b/x11-terms/kterm/files/kterm-6.2.0-openpty.patch @@ -0,0 +1,59 @@ +diff -ru kterm-orig/Imakefile kterm-6.2.0/Imakefile +--- kterm-orig/Imakefile 2004-10-12 01:23:25.000000000 +0200 ++++ kterm-6.2.0/Imakefile 2004-10-12 01:37:59.100764752 +0200 +@@ -23,6 +23,11 @@ + PUCCPTYDDEF = -DPUCC_PTYD /* does not need to be setuid */ + PTYLIB = -lpucc + #endif ++#ifdef LinuxArchitecture ++ PTYLIB = -lutil ++#undef InstallXtermSetUID ++#define InstallXtermSetUID 0 ++#endif + + OSMAJORVERSION = OSMajorVersion + OSMINORVERSION = OSMinorVersion +diff -ru kterm-orig/button.c kterm-6.2.0/button.c +--- kterm-orig/button.c 1996-07-02 07:01:46.000000000 +0200 ++++ kterm-6.2.0/button.c 2004-10-12 01:29:59.420687208 +0200 +@@ -41,8 +41,6 @@ + #include "error.h" + #include "menu.h" + +-extern char *malloc(); +- + extern void DoSecureKeyboard(); + + #define KeyState(x) (((x) & (ShiftMask|ControlMask)) + (((x) & Mod1Mask) ? 2 : 0)) +diff -ru kterm-orig/charproc.c kterm-6.2.0/charproc.c +--- kterm-orig/charproc.c 2004-10-12 01:23:25.000000000 +0200 ++++ kterm-6.2.0/charproc.c 2004-10-12 01:30:29.640093160 +0200 +@@ -102,8 +102,6 @@ + extern XtAppContext app_con; + extern Widget toplevel; + extern void exit(); +-extern char *malloc(); +-extern char *realloc(); + extern fd_set Select_mask; + extern fd_set X_mask; + extern fd_set pty_mask; +diff -ru kterm-orig/main.c kterm-6.2.0/main.c +--- kterm-orig/main.c 2004-10-12 01:23:25.000000000 +0200 ++++ kterm-6.2.0/main.c 2004-10-12 01:32:56.697737000 +0200 +@@ -143,6 +143,7 @@ + #define HAS_UTMP_UT_HOST + #define LASTLOG + #define WTMP ++#include <pty.h> + #endif + + #include <sys/ioctl.h> +@@ -1871,7 +1872,7 @@ + get_pty (pty) + int *pty; + { +-#ifdef __osf__ ++#if defined(__osf__) || defined(linux) + int tty; + return (openpty(pty, &tty, ttydev, NULL, NULL)); + #endif |