summaryrefslogtreecommitdiff
blob: a41223af8e6f0a1076b5f95f28bd07da9a947933 (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
43
44
45
46
47
48
49
50
51
52
diff -Naur src.orig/Wnn/etc/msg.c src/Wnn/etc/msg.c
--- src.orig/Wnn/etc/msg.c	2001-10-17 10:37:17.000000000 +0900
+++ src/Wnn/etc/msg.c	2008-11-22 10:38:22.000000000 +0900
@@ -148,6 +148,8 @@
 	    <message id>\t<message>
 */
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include "commonhd.h"
 #include "config.h"
 #include "dslib.h"
@@ -156,7 +158,7 @@
 
 
 static char *
-bsearch(ky, bs, nel, width, compar)
+a_bsearch(ky, bs, nel, width, compar)
 char *ky;
 char *bs;
 unsigned long nel;
@@ -244,7 +246,7 @@
 		return(NULL);
 	if (cd->msg_bd == 0 || cd->msg_cnt == 0)
 		return(NULL);
-	bd = (struct msg_bd *)bsearch(id, cd->msg_bd, cd->msg_cnt,
+	bd = (struct msg_bd *)a_bsearch(id, cd->msg_bd, cd->msg_cnt,
 		sizeof(struct msg_bd), _search);
 	if (bd == NULL)
 		return(NULL);
diff -Naur src.orig/Wnn/jlib/jl.c src/Wnn/jlib/jl.c
--- src.orig/Wnn/jlib/jl.c	2001-10-17 10:37:17.000000000 +0900
+++ src/Wnn/jlib/jl.c	2008-11-22 10:18:36.000000000 +0900
@@ -143,6 +143,7 @@
 #include "commonhd.h"
 #include "config.h"
 #include <stdio.h>
+#include <stdlib.h>
 #include <sys/types.h>
 #ifdef SYSVR2
 #   include <string.h>
diff -Naur src.orig/Wnn/jlib/js.c src/Wnn/jlib/js.c
--- src.orig/Wnn/jlib/js.c	2001-10-17 10:37:17.000000000 +0900
+++ src/Wnn/jlib/js.c	2008-11-22 10:27:04.000000000 +0900
@@ -162,6 +162,7 @@
 extern	char	*malloc();
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <ctype.h>
 #ifdef UX386
 #include <X11/Xos.h>