diff options
author | joerg <joerg@pkgsrc.org> | 2005-12-19 00:13:38 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2005-12-19 00:13:38 +0000 |
commit | 188f4ddbbce9fec5cbf63f34231de86351155e7c (patch) | |
tree | fb50b3e157d616503a5b8fc38cbcbc0878e16775 /converters/mpack/patches | |
parent | d2b29ade853ddbcab4ed3edc5432b897682f2f2c (diff) | |
download | pkgsrc-188f4ddbbce9fec5cbf63f34231de86351155e7c.tar.gz |
Fix errno. Use stdlib.h in one place as well.
Diffstat (limited to 'converters/mpack/patches')
-rw-r--r-- | converters/mpack/patches/patch-ab | 25 | ||||
-rw-r--r-- | converters/mpack/patches/patch-ae | 12 |
2 files changed, 34 insertions, 3 deletions
diff --git a/converters/mpack/patches/patch-ab b/converters/mpack/patches/patch-ab index d775bca264c..7ad142f7d07 100644 --- a/converters/mpack/patches/patch-ab +++ b/converters/mpack/patches/patch-ab @@ -1,8 +1,27 @@ -$NetBSD: patch-ab,v 1.5 2002/12/05 16:45:21 is Exp $ +$NetBSD: patch-ab,v 1.6 2005/12/19 00:13:39 joerg Exp $ ---- unixos.c.orig Thu Feb 16 16:39:50 1995 +--- unixos.c.orig 1995-02-16 21:39:50.000000000 +0000 +++ unixos.c -@@ -89,7 +90,11 @@ +@@ -23,6 +23,7 @@ + * SOFTWARE. + */ + #include <stdio.h> ++#include <stdlib.h> + #include <ctype.h> + #include <string.h> + #include <errno.h> +@@ -36,10 +37,6 @@ + #define MAXHOSTNAMELEN 64 + #endif + +-extern int errno; +-extern char *malloc(); +-extern char *getenv(); +- + int overwrite_files = 0; + int didchat; + +@@ -89,7 +86,11 @@ char *id; strcpy(buf, getenv("TMPDIR")); } else { diff --git a/converters/mpack/patches/patch-ae b/converters/mpack/patches/patch-ae new file mode 100644 index 00000000000..4a78f48922c --- /dev/null +++ b/converters/mpack/patches/patch-ae @@ -0,0 +1,12 @@ +$NetBSD: patch-ae,v 1.1 2005/12/19 00:13:39 joerg Exp $ + +--- unixpk.c.orig 2005-12-19 00:09:00.000000000 +0000 ++++ unixpk.c +@@ -33,7 +33,6 @@ ww * Permission to use, copy, modify, di + + extern char *getenv(); + +-extern int errno; + extern int optind; + extern char *optarg; + |