From 188f4ddbbce9fec5cbf63f34231de86351155e7c Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 19 Dec 2005 00:13:38 +0000 Subject: Fix errno. Use stdlib.h in one place as well. --- converters/mpack/patches/patch-ab | 25 ++++++++++++++++++++++--- converters/mpack/patches/patch-ae | 12 ++++++++++++ 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 converters/mpack/patches/patch-ae (limited to 'converters/mpack/patches') 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 ++#include + #include + #include + #include +@@ -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; + -- cgit v1.2.3