summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-terms/hanterm/files/hanterm-3.1.6-gentoo.patch')
-rw-r--r--x11-terms/hanterm/files/hanterm-3.1.6-gentoo.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/x11-terms/hanterm/files/hanterm-3.1.6-gentoo.patch b/x11-terms/hanterm/files/hanterm-3.1.6-gentoo.patch
new file mode 100644
index 000000000000..bb3d6b1365df
--- /dev/null
+++ b/x11-terms/hanterm/files/hanterm-3.1.6-gentoo.patch
@@ -0,0 +1,42 @@
+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>
+