From 0ff91239775d3126e730690f87a05c0353b33684 Mon Sep 17 00:00:00 2001 From: hmeland Date: Sun, 23 May 1999 10:29:01 +0000 Subject: Stole GNU sh-utils-1.16 configure.in code to check for syslog() outside of the default libs. Ran autoconf (from autoconf-2.13) to update configure. src/common.[ch] now has #ifdefs around syslog-using code -- thus, Mailman will compile, but _without any syslog calls_ if configure couldn't find syslog(). --- src/common.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common.c') diff --git a/src/common.c b/src/common.c index ec054219e..cddefb915 100644 --- a/src/common.c +++ b/src/common.c @@ -65,12 +65,14 @@ fatal(const char* ident, int exitcode, const char* format, ...) vsprintf(log_entry, format, arg_ptr); va_end(arg_ptr); +#ifdef HAVE_SYSLOG /* Write to the console, maillog is often mostly ignored, and root * should definitely know about any problems. */ openlog(ident, LOG_CONS, LOG_MAIL); syslog(LOG_ERR, "%s", log_entry); closelog(); +#endif /* HAVE_SYSLOG */ #ifdef HELPFUL /* If we're running as a CGI script, we also want to write the log -- cgit v1.2.3-70-g09d2