File kterm-6.2.0-implicit-decl.patch of Package kterm
Index: kterm-6.2.0/button.c
===================================================================
--- kterm-6.2.0.orig/button.c
+++ kterm-6.2.0/button.c
@@ -40,6 +40,10 @@ button.c Handles button events in the te
#include "data.h"
#include "error.h"
#include "menu.h"
+#include "convert.h"
+#include "charproc.h"
+#include "screen.h"
+#include "misc.h"
extern void *malloc();
@@ -124,6 +128,11 @@ static int replyToEmacs;
static int mbcsCharClass ();
#endif /* KTERM && KTERM_MBCC */
+int TrackText(register int frow, register int fcol, register int trow, register int tcol);
+
+int DisownSelection(register XtermWidget termw);
+
+
Boolean SendMousePosition(w, event)
Widget w;
XEvent* event;
Index: kterm-6.2.0/charproc.c
===================================================================
--- kterm-6.2.0.orig/charproc.c
+++ kterm-6.2.0/charproc.c
@@ -71,6 +71,7 @@ in this Software without prior written a
#define Select select
#endif
#include <stdio.h>
+#include <stdlib.h>
#include <errno.h>
#include <setjmp.h>
#include <ctype.h>
Index: kterm-6.2.0/charproc.h
===================================================================
--- /dev/null
+++ kterm-6.2.0/charproc.h
@@ -0,0 +1,2 @@
+void v_write(int f, char* d, int len);
+void HideCursor();
Index: kterm-6.2.0/convert.h
===================================================================
--- /dev/null
+++ kterm-6.2.0/convert.h
@@ -0,0 +1,3 @@
+int convCTtoCS(register Char *xstr, int len, Ichr *cs);
+int convCStoLatin1(Ichr *cs, Char *ls);
+int convCStoCT(register Ichr *cs, register Char *as);
Index: kterm-6.2.0/main.c
===================================================================
--- kterm-6.2.0.orig/main.c
+++ kterm-6.2.0/main.c
@@ -80,6 +80,7 @@ SOFTWARE.
#endif
#include <X11/Xlocale.h>
#include <pwd.h>
+#include <grp.h>
#include <ctype.h>
#include "data.h"
#include "error.h"
Index: kterm-6.2.0/misc.c
===================================================================
--- kterm-6.2.0.orig/misc.c
+++ kterm-6.2.0/misc.c
@@ -884,9 +884,7 @@ char *SysErrorMsg (n)
}
-SysError (i)
-int i;
-{
+int SysError(int i) {
int oerrno;
oerrno = errno;
Index: kterm-6.2.0/misc.h
===================================================================
--- /dev/null
+++ kterm-6.2.0/misc.h
@@ -0,0 +1 @@
+int SysError(int i);
Index: kterm-6.2.0/screen.h
===================================================================
--- /dev/null
+++ kterm-6.2.0/screen.h
@@ -0,0 +1,2 @@
+void ScrnRefresh (register TScreen *screen, int toprow, int leftcol, int nrows, int ncols, Boolean force);
+int ScrnGetAttributes(TScreen *screen, int row, int col, Char *str, register int length);
Index: kterm-6.2.0/scrollbar.c
===================================================================
--- kterm-6.2.0.orig/scrollbar.c
+++ kterm-6.2.0/scrollbar.c
@@ -29,6 +29,8 @@
#include "ptyx.h" /* gets Xt headers, too */
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <ctype.h>
#include <X11/Xatom.h>