diff options
author | Christian Hesse | 2015-06-29 21:42:12 +0200 |
---|---|---|
committer | Christian Hesse | 2015-06-29 21:42:12 +0200 |
commit | c9bc6861bb7637077d5f44ee95de26d86ffc0444 (patch) | |
tree | 9bac0a363fabfb3b57a5f73ec768bf099e3ca307 /gcc4-fixes.patch | |
download | aur-c9bc6861bb7637077d5f44ee95de26d86ffc0444.tar.gz |
initial import of mpack 1.6-4
Diffstat (limited to 'gcc4-fixes.patch')
-rw-r--r-- | gcc4-fixes.patch | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/gcc4-fixes.patch b/gcc4-fixes.patch new file mode 100644 index 000000000000..39bf57dbcbe7 --- /dev/null +++ b/gcc4-fixes.patch @@ -0,0 +1,72 @@ +diff -ub -r mpack-1.6-orig/unixos.c mpack-1.6/unixos.c +--- mpack-1.6-orig/unixos.c 2003-07-21 22:54:05.000000000 +0200 ++++ mpack-1.6/unixos.c 2009-01-12 17:11:50.000000000 +0100 +@@ -23,6 +23,7 @@ + * SOFTWARE. + */ + #include <stdio.h> ++#include <stdlib.h> + #include <ctype.h> + #include <string.h> + #include <errno.h> +@@ -38,10 +39,6 @@ + #define MAXHOSTNAMELEN 64 + #endif + +-extern int errno; +-extern char *malloc(); +-extern char *getenv(); +- + int overwrite_files = 0; + int didchat; + +diff -ub -r mpack-1.6-orig/unixpk.c mpack-1.6/unixpk.c +--- mpack-1.6-orig/unixpk.c 2003-07-21 22:50:41.000000000 +0200 ++++ mpack-1.6/unixpk.c 2009-01-12 17:11:32.000000000 +0100 +@@ -23,6 +23,9 @@ + * SOFTWARE. + */ + #include <stdio.h> ++#include <stdlib.h> ++#include <unistd.h> ++#include <getopt.h> + #include <string.h> + #include <errno.h> + #include "common.h" +@@ -31,12 +34,6 @@ + + #define MAXADDRESS 100 + +-extern char *getenv(); +- +-extern int errno; +-extern int optind; +-extern char *optarg; +- + void usage(void); + void sendmail(FILE *infile, char **addr, int start); + void inews(FILE *infile); +diff -ub -r mpack-1.6-orig/unixunpk.c mpack-1.6/unixunpk.c +--- mpack-1.6-orig/unixunpk.c 2003-07-21 22:51:55.000000000 +0200 ++++ mpack-1.6/unixunpk.c 2009-01-12 17:12:25.000000000 +0100 +@@ -23,6 +23,7 @@ + * SOFTWARE. + */ + #include <stdio.h> ++#include <stdlib.h> + #include "version.h" + #include "part.h" + +diff -ub -r mpack-1.6-orig/xmalloc.c mpack-1.6/xmalloc.c +--- mpack-1.6-orig/xmalloc.c 2003-07-21 22:35:31.000000000 +0200 ++++ mpack-1.6/xmalloc.c 2009-01-12 17:12:07.000000000 +0100 +@@ -23,8 +23,8 @@ + * SOFTWARE. + */ + #include <stdio.h> ++#include <stdlib.h> + #include <string.h> +-extern char *malloc(), *realloc(); + + char *xmalloc (int size) + { |