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.
gentoo-overlay/x11-terms/hanterm/files/hanterm-3.1.6-gentoo.patch

43 lines
1.2 KiB

diff -Naur hanterm-3.1.6.orig/button.c hanterm-3.1.6/button.c
--- hanterm-3.1.6.orig/button.c 2001-06-06 22:05:15.000000000 +0900
+++ hanterm-3.1.6/button.c 2008-12-23 00:48:18.000000000 +0900
@@ -42,7 +42,6 @@
void TrackText();
-extern char *malloc();
extern void input_to_chat();
extern void HideCursor();
diff -Naur hanterm-3.1.6.orig/charproc.c hanterm-3.1.6/charproc.c
--- hanterm-3.1.6.orig/charproc.c 2001-06-06 22:05:15.000000000 +0900
+++ hanterm-3.1.6/charproc.c 2008-12-23 00:48:32.000000000 +0900
@@ -47,6 +47,7 @@
#include <X11/Xmu/CharSet.h>
#include <X11/Xmu/Converters.h>
#include <stdio.h>
+#include <stdlib.h>
#include <errno.h>
#include <setjmp.h>
#include <ctype.h>
@@ -81,8 +82,6 @@
extern Widget toplevel;
extern void exit();
-extern char *malloc();
-extern char *realloc();
extern void FlushScroll();
extern void InsertLine();
diff -Naur hanterm-3.1.6.orig/scrollbar.c hanterm-3.1.6/scrollbar.c
--- hanterm-3.1.6.orig/scrollbar.c 1999-03-19 15:27:19.000000000 +0900
+++ hanterm-3.1.6/scrollbar.c 2008-12-23 00:45:53.000000000 +0900
@@ -28,6 +28,7 @@
#include "ptyx.h" /* gets Xt headers, too */
#include <stdio.h>
+#include <stdlib.h>
#include <ctype.h>
#include <X11/Xatom.h>