Fix to build on WIN32.

This commit is contained in:
Andrew Johnson
2008-09-29 17:54:35 +00:00
parent 82e26e2d79
commit 078f919296

View File

@@ -22,6 +22,7 @@
typedef int (*PRINTFFUNC)(const char *fmt, ...);
static int stderrPrintf(const char *fmt, ...);
static int logPrintf(const char *fmt, ...);
static struct outStream {
@@ -30,7 +31,7 @@ static struct outStream {
} outStreams[] = {
{"stdout", printf},
{"stderr", stderrPrintf},
{"errlog", errlogPrintf},
{"errlog", logPrintf},
{NULL, NULL}
};
@@ -45,6 +46,17 @@ static int stderrPrintf(const char *fmt, ...) {
return retval;
}
static int logPrintf(const char *fmt, ...) {
va_list pvar;
int retval;
va_start(pvar, fmt);
retval = errlogVprintf(fmt, pvar);
va_end (pvar);
return retval;
}
static long add(dbCommon *pcommon) {
stringoutRecord *prec = (stringoutRecord *) pcommon;
struct outStream *pstream;