diff options
author | agc <agc@pkgsrc.org> | 2003-12-15 16:19:43 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2003-12-15 16:19:43 +0000 |
commit | 336530e37ab9ee4de60153c04b8eec945763bd88 (patch) | |
tree | b3b5afa1da7377dd28da7a692a397890c747ddc1 /sysutils/depot/patches | |
parent | bddc83dbaead0a7472eb5ceacbab27d72a065ddb (diff) | |
download | pkgsrc-336530e37ab9ee4de60153c04b8eec945763bd88.tar.gz |
Make this package compile with gcc3.
Diffstat (limited to 'sysutils/depot/patches')
-rw-r--r-- | sysutils/depot/patches/patch-ab | 13 | ||||
-rw-r--r-- | sysutils/depot/patches/patch-ac | 44 | ||||
-rw-r--r-- | sysutils/depot/patches/patch-ad | 24 | ||||
-rw-r--r-- | sysutils/depot/patches/patch-ae | 27 |
4 files changed, 108 insertions, 0 deletions
diff --git a/sysutils/depot/patches/patch-ab b/sysutils/depot/patches/patch-ab new file mode 100644 index 00000000000..ac15a0b544e --- /dev/null +++ b/sysutils/depot/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1 2003/12/15 16:19:43 agc Exp $ + +--- src/lib/include/depotlib.h 2003/12/15 16:03:26 1.1 ++++ src/lib/include/depotlib.h 2003/12/15 16:04:54 +@@ -38,7 +38,7 @@ + #include <netinet/in.h> /* for htonl, ntohl */ + + #ifndef INHIBIT_VARARGS_H +-#include <varargs.h> ++#include <stdarg.h> + #endif + + /* taken from the example in gnu-autoconf */ diff --git a/sysutils/depot/patches/patch-ac b/sysutils/depot/patches/patch-ac new file mode 100644 index 00000000000..24ba567984b --- /dev/null +++ b/sysutils/depot/patches/patch-ac @@ -0,0 +1,44 @@ +$NetBSD: patch-ac,v 1.1 2003/12/15 16:19:43 agc Exp $ + +--- src/lib/util/message.c 2003/12/15 16:08:23 1.1 ++++ src/lib/util/message.c 2003/12/15 16:10:07 +@@ -41,15 +41,11 @@ + int PROGRAM_Verbose; + + +-void Message(va_alist) +-va_dcl ++void Message(char *fmt, ...) + { + va_list ap; +- char *fmt; + +- va_start(ap); +- +- fmt = va_arg(ap, char *); ++ va_start(ap, fmt); + (void)vfprintf(stdout, fmt, ap); + fflush(stdout); + va_end(ap); +@@ -58,19 +54,14 @@ + } + + +-void Filtered_Message(va_alist) +- va_dcl ++void Filtered_Message(unsigned filter, char *fmt, ...) + { + va_list ap; +- unsigned filter; +- char *fmt; + +- va_start(ap); ++ va_start(ap, fmt); + +- filter = va_arg(ap, Boolean); + if (filter) + { +- fmt = va_arg(ap, char *); + (void)vfprintf(stdout, fmt, ap); + fflush(stdout); + } diff --git a/sysutils/depot/patches/patch-ad b/sysutils/depot/patches/patch-ad new file mode 100644 index 00000000000..af69030bc94 --- /dev/null +++ b/sysutils/depot/patches/patch-ad @@ -0,0 +1,24 @@ +$NetBSD: patch-ad,v 1.1 2003/12/15 16:19:43 agc Exp $ + +--- src/lib/util/util.h 2003/12/15 16:11:55 1.1 ++++ src/lib/util/util.h 2003/12/15 16:12:25 +@@ -134,8 +134,8 @@ + extern int PROGRAM_Verbose; + #define PROGRAM_TRACEVAL 50 + +-extern void Message(); +-extern void Filtered_Message(); ++extern void Message(char *, ...); ++extern void Filtered_Message(unsigned, char *, ...); + + /* Error.c */ + +@@ -146,7 +146,7 @@ + #define FatalError __DepotErrorInfoFile=__FILE__, \ + __DepotErrorInfoLineNo=__LINE__, __FatalError + +-void __FatalError(); ++void __FatalError(int, char *, ...); + + /* timer.c */ + extern void timer_start(); diff --git a/sysutils/depot/patches/patch-ae b/sysutils/depot/patches/patch-ae new file mode 100644 index 00000000000..bcaac6c9ac6 --- /dev/null +++ b/sysutils/depot/patches/patch-ae @@ -0,0 +1,27 @@ +$NetBSD: patch-ae,v 1.1 2003/12/15 16:19:43 agc Exp $ + +--- src/lib/util/Error.c 2003/12/15 16:13:57 1.1 ++++ src/lib/util/Error.c 2003/12/15 16:15:42 +@@ -195,19 +195,14 @@ + + + void +-__FatalError(va_alist) +-va_dcl ++__FatalError(int e, char *fmt, ...) + { + va_list ap; +- char *fmt; + +- va_start(ap); ++ va_start(ap, fmt); + + if (PROGRAM_ErrorNo == E_NULL) +- PROGRAM_ErrorNo = va_arg(ap, int); +- else +- (void) va_arg(ap, int); /* skip the first argument */ +- fmt = va_arg(ap, char *); ++ PROGRAM_ErrorNo = e; + (void)fprintf(stderr,"Depot Error: %s:%d: ",__DepotErrorInfoFile, + __DepotErrorInfoLineNo); + (void)vfprintf(stderr, fmt, ap); |