blob: 5878cff2025434beb7f427b92cf9529e37b5f931 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "../include/sane/config.h"
#ifndef HAVE_VSYSLOG
#include <stdio.h>
#include <stdarg.h>
void vsyslog(int priority, const char *format, va_list args)
{
char buf[1024];
vsnprintf(buf, sizeof(buf), format, args);
syslog(priority, "%s", buf);
}
#endif /* !HAVE_VSYSLOG */
|