You've already forked linux-packaging-mono
Imported Upstream version 5.12.0.220
Former-commit-id: c477e03582759447177c6d4bf412cd2355aad476
This commit is contained in:
parent
8bd104cef2
commit
8fc30896db
@ -55,10 +55,20 @@ Mono_Posix_Syscall_syslog2 (int priority, const char *format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
#if HAVE_VSYSLOG
|
||||
va_start (ap, format);
|
||||
vsyslog (priority, format, ap);
|
||||
va_end (ap);
|
||||
#else
|
||||
/* some OSes like AIX lack vsyslog; simulate with vsprintf */
|
||||
char message[256];
|
||||
|
||||
va_start (ap, format);
|
||||
vsnprintf(message, 256, format, ap);
|
||||
va_end(ap);
|
||||
|
||||
syslog(priority, message);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user