diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-04-02 17:36:40 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-04-02 17:36:40 +0100 |
commit | 171a011ad3a131671aeb5a98b9e3adf219ad2865 (patch) | |
tree | 0c877a3d1a37f10e37ad7168cfc52054aa0948a7 /x11-terms/kterm/files/kterm-openpty.patch | |
parent | 75fc75ae1f0481ffdb78450e801a9b443ba641bd (diff) |
gentoo resync : 02.04.2018
Diffstat (limited to 'x11-terms/kterm/files/kterm-openpty.patch')
-rw-r--r-- | x11-terms/kterm/files/kterm-openpty.patch | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/x11-terms/kterm/files/kterm-openpty.patch b/x11-terms/kterm/files/kterm-openpty.patch new file mode 100644 index 000000000000..0174b746e529 --- /dev/null +++ b/x11-terms/kterm/files/kterm-openpty.patch @@ -0,0 +1,55 @@ +--- a/Imakefile ++++ b/Imakefile +@@ -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 +--- a/button.c ++++ b/button.c +@@ -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)) +--- a/charproc.c ++++ b/charproc.c +@@ -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; +--- a/main.c ++++ b/main.c +@@ -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 |