You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.1 KiB
56 lines
1.1 KiB
7 years ago
|
--- a/Imakefile
|
||
|
+++ b/Imakefile
|
||
13 years ago
|
@@ -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
|
||
7 years ago
|
--- a/button.c
|
||
|
+++ b/button.c
|
||
13 years ago
|
@@ -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))
|
||
7 years ago
|
--- a/charproc.c
|
||
|
+++ b/charproc.c
|
||
13 years ago
|
@@ -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;
|
||
7 years ago
|
--- a/main.c
|
||
|
+++ b/main.c
|
||
13 years ago
|
@@ -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
|