]> andersk Git - moira.git/blobdiff - update/log.c
New database and column names for Moira2.
[moira.git] / update / log.c
index a94fe32d88ce87e52b76b2d08ec15ab782eea921..8d95fcf9ada66e062347d6e0bab417ae1cebca0f 100644 (file)
@@ -24,7 +24,9 @@ static char *rcsid_log_c = "$Header$";
 #include <mit-copyright.h>
 #include <stdio.h>
 #include "com_err.h"
+#ifndef sun
 #include <varargs.h>
+#endif
 #include "update.h"
 #include <krb.h>
 
@@ -56,9 +58,7 @@ void mr_update_com_err_hook(whoami, code, fmt, args)
     va_list args;
 {
     char buf[BUFSIZ], *cp;
-#ifndef __STDC__
     FILE _strbuf;
-#endif
 
 #ifndef use_syslog
     strcpy(buf, whoami);
@@ -75,7 +75,7 @@ void mr_update_com_err_hook(whoami, code, fmt, args)
        while (*cp)
            cp++;
     }
-#ifdef __STDC__
+#ifdef HAS_VSPRINTF
     vsprintf(cp, fmt, args);
 #else
     _strbuf._flag = _IOWRT+_IOSTRG;
This page took 0.031848 seconds and 4 git commands to generate.