--- libgda-0.2.96/providers/gda-default-server/sqlite/lemon.c.orig 2001-10-27 01:46:34.000000000 +0200 +++ libgda-0.2.96/providers/gda-default-server/sqlite/lemon.c 2003-07-17 15:34:41.000000000 +0200 @@ -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( const char * param, ... /* char *, int, char *, ... */ ); /****** From the file "option.h" ******************************************/ struct s_options { @@ -1092,8 +1092,7 @@ #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(const char *param, ...) { char *filename; int lineno; @@ -1106,7 +1105,7 @@ va_list ap; int end, restart, base; - va_start(ap); + va_start(ap,param); filename = va_arg(ap,char*); lineno = va_arg(ap,int); format = va_arg(ap,char*);