add vsyslog() for systems without it.

This commit is contained in:
Todd C. Miller
2016-10-19 11:32:36 -06:00
parent 6fa59b7416
commit 19c96da44d
6 changed files with 105 additions and 18 deletions

View File

@@ -487,5 +487,10 @@ __dso_public void *sudo_reallocarray(void *ptr, size_t nmemb, size_t size);
# undef reallocarray
# define reallocarray(_a, _b, _c) sudo_reallocarray((_a), (_b), (_c))
#endif /* HAVE_REALLOCARRAY */
#ifndef HAVE_VSYSLOG
__dso_public void sudo_vsyslog(int pri, const char *fmt, va_list ap);
# undef vsyslog
# define vsyslog(_a, _b, _c) sudo_vsyslog((_a), (_b), (_c))
#endif /* HAVE_VSYSLOG */
#endif /* SUDO_COMPAT_H */