aboutsummaryrefslogtreecommitdiffstats
path: root/databases/libgda
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-08-05 00:52:33 +0800
committermarcus <marcus@FreeBSD.org>2003-08-05 00:52:33 +0800
commit509770ebdb476d0bfe3250c36f0d3d715fdd18ec (patch)
treead0cca79debcb60bc1ca387b453eb536bbd93a6d /databases/libgda
parent4507037785984196d10e8e058e4d55e74f195422 (diff)
downloadfreebsd-ports-gnome-509770ebdb476d0bfe3250c36f0d3d715fdd18ec.tar.gz
freebsd-ports-gnome-509770ebdb476d0bfe3250c36f0d3d715fdd18ec.tar.zst
freebsd-ports-gnome-509770ebdb476d0bfe3250c36f0d3d715fdd18ec.zip
Fix build with GCC 3.3.1.
PR: 55236 Submitted by: Jens Rehsack <rehsack@liwing.de>
Diffstat (limited to 'databases/libgda')
-rw-r--r--databases/libgda/files/patch-providers::gda-default-server::sqlite::lemon.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/databases/libgda/files/patch-providers::gda-default-server::sqlite::lemon.c b/databases/libgda/files/patch-providers::gda-default-server::sqlite::lemon.c
new file mode 100644
index 000000000000..5aab82eb2223
--- /dev/null
+++ b/databases/libgda/files/patch-providers::gda-default-server::sqlite::lemon.c
@@ -0,0 +1,50 @@
+--- providers/gda-default-server/sqlite/lemon.c.orig Mon Aug 4 09:34:14 2003
++++ providers/gda-default-server/sqlite/lemon.c Mon Aug 4 09:43:12 2003
+@@ -7,7 +7,7 @@
+ ** The author of this program disclaims copyright.
+ */
+ #include <stdio.h>
+-#include <varargs.h>
++#include <stdarg.h>
+ #include <string.h>
+ #include <ctype.h>
+
+@@ -70,7 +70,7 @@
+ void Configlist_reset(/* void */);
+
+ /********* From the file "error.h" ***************************************/
+-void ErrorMsg( /* char *, int, char *, ... */ );
++void ErrorMsg( char *, int, char *, ... );
+
+ /****** From the file "option.h" ******************************************/
+ struct s_options {
+@@ -1092,12 +1092,13 @@
+ #define ERRMSGSIZE 10000 /* Hope this is big enough. No way to error check */
+ #define LINEWIDTH 79 /* Max width of any output line */
+ #define PREFIXLIMIT 30 /* Max width of the prefix on each line */
+-void ErrorMsg(va_alist)
+-va_dcl
++void ErrorMsg( char *filename, int lineno, char *format, ... )
+ {
++ /*
+ char *filename;
+ int lineno;
+ char *format;
++ */
+ char errmsg[ERRMSGSIZE];
+ char prefix[PREFIXLIMIT+10];
+ int errmsgsize;
+@@ -1106,10 +1107,12 @@
+ va_list ap;
+ int end, restart, base;
+
+- va_start(ap);
++ va_start(ap, format);
++ /*
+ filename = va_arg(ap,char*);
+ lineno = va_arg(ap,int);
+ format = va_arg(ap,char*);
++ */
+ /* Prepare a prefix to be prepended to every output line */
+ if( lineno>0 ){
+ sprintf(prefix,"%.*s:%d: ",PREFIXLIMIT-10,filename,lineno);