summaryrefslogtreecommitdiff
path: root/x11-terms/hanterm/files/hanterm-3.1.6-gentoo.patch
blob: bb3d6b1365dfb145aed09fb6ccafc93762345617 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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>