blob: 96b928a80a2e689316380238caa768221b210b86 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- a/unixos.c
2+++ b/unixos.c
3@@ -25,6 +25,7 @@
4 #include <stdio.h>
5 #include <ctype.h>
6 #include <string.h>
7+#include <stdlib.h>
8 #include <errno.h>
9 #include <sys/types.h>
10 #include <sys/param.h>
11@@ -39,8 +40,6 @@
12 #endif
13
14 extern int errno;
15-extern char *malloc();
16-extern char *getenv();
17
18 int overwrite_files = 0;
19 int didchat;
20--- a/xmalloc.c
21+++ b/xmalloc.c
22@@ -24,7 +24,7 @@
23 */
24 #include <stdio.h>
25 #include <string.h>
26-extern char *malloc(), *realloc();
27+#include <stdlib.h>
28
29 char *xmalloc (int size)
30 {