diff options
Diffstat (limited to '')
| -rw-r--r-- | src/common.c | 2 | ||||
| -rw-r--r-- | src/common.h | 4 |
2 files changed, 5 insertions, 1 deletions
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 diff --git a/src/common.h b/src/common.h index c963032f2..0db351754 100644 --- a/src/common.h +++ b/src/common.h @@ -19,7 +19,9 @@ #include <stdlib.h> #include <stdarg.h> +#ifdef HAVE_SYSLOG_H #include <syslog.h> +#endif /* HAVE_SYSLOG_H */ #include <stdio.h> #include <string.h> #include <errno.h> @@ -45,7 +47,7 @@ extern const char* logident; #define EXECVE_FAILURE 4 #define MAIL_USAGE_ERROR 5 #define MAIL_ILLEGAL_COMMAND 6 - +#define ADDALIAS_USAGE_ERROR 7 /* |
