diff --git a/utils/mpack/patches/001-use-stdlib.patch b/utils/mpack/patches/001-use-stdlib.patch new file mode 100644 index 000000000..c5d10df7d --- /dev/null +++ b/utils/mpack/patches/001-use-stdlib.patch @@ -0,0 +1,34 @@ +Index: mpack-1.6/unixos.c +=================================================================== +--- mpack-1.6.orig/unixos.c ++++ mpack-1.6/unixos.c +@@ -25,6 +25,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -39,8 +40,6 @@ + #endif + + extern int errno; +-extern char *malloc(); +-extern char *getenv(); + + int overwrite_files = 0; + int didchat; +Index: mpack-1.6/xmalloc.c +=================================================================== +--- mpack-1.6.orig/xmalloc.c ++++ mpack-1.6/xmalloc.c +@@ -24,7 +24,7 @@ + */ + #include + #include +-extern char *malloc(), *realloc(); ++#include + + char *xmalloc (int size) + {