updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / mpack / gcc4-fixes.patch
blob39bf57dbcbe74d39ef857f8b4cf08e6a1497be11
1 diff -ub -r mpack-1.6-orig/unixos.c mpack-1.6/unixos.c
2 --- mpack-1.6-orig/unixos.c 2003-07-21 22:54:05.000000000 +0200
3 +++ mpack-1.6/unixos.c 2009-01-12 17:11:50.000000000 +0100
4 @@ -23,6 +23,7 @@
5 * SOFTWARE.
6 */
7 #include <stdio.h>
8 +#include <stdlib.h>
9 #include <ctype.h>
10 #include <string.h>
11 #include <errno.h>
12 @@ -38,10 +39,6 @@
13 #define MAXHOSTNAMELEN 64
14 #endif
16 -extern int errno;
17 -extern char *malloc();
18 -extern char *getenv();
20 int overwrite_files = 0;
21 int didchat;
23 diff -ub -r mpack-1.6-orig/unixpk.c mpack-1.6/unixpk.c
24 --- mpack-1.6-orig/unixpk.c 2003-07-21 22:50:41.000000000 +0200
25 +++ mpack-1.6/unixpk.c 2009-01-12 17:11:32.000000000 +0100
26 @@ -23,6 +23,9 @@
27 * SOFTWARE.
29 #include <stdio.h>
30 +#include <stdlib.h>
31 +#include <unistd.h>
32 +#include <getopt.h>
33 #include <string.h>
34 #include <errno.h>
35 #include "common.h"
36 @@ -31,12 +34,6 @@
38 #define MAXADDRESS 100
40 -extern char *getenv();
42 -extern int errno;
43 -extern int optind;
44 -extern char *optarg;
46 void usage(void);
47 void sendmail(FILE *infile, char **addr, int start);
48 void inews(FILE *infile);
49 diff -ub -r mpack-1.6-orig/unixunpk.c mpack-1.6/unixunpk.c
50 --- mpack-1.6-orig/unixunpk.c 2003-07-21 22:51:55.000000000 +0200
51 +++ mpack-1.6/unixunpk.c 2009-01-12 17:12:25.000000000 +0100
52 @@ -23,6 +23,7 @@
53 * SOFTWARE.
55 #include <stdio.h>
56 +#include <stdlib.h>
57 #include "version.h"
58 #include "part.h"
60 diff -ub -r mpack-1.6-orig/xmalloc.c mpack-1.6/xmalloc.c
61 --- mpack-1.6-orig/xmalloc.c 2003-07-21 22:35:31.000000000 +0200
62 +++ mpack-1.6/xmalloc.c 2009-01-12 17:12:07.000000000 +0100
63 @@ -23,8 +23,8 @@
64 * SOFTWARE.
66 #include <stdio.h>
67 +#include <stdlib.h>
68 #include <string.h>
69 -extern char *malloc(), *realloc();
71 char *xmalloc (int size)