diff --git a/src/log.c b/src/log.c index 5f5ae0541..47419eec5 100644 --- a/src/log.c +++ b/src/log.c @@ -322,7 +322,9 @@ void close_log_files(void) if (stdout_mode) return; +#ifdef HAVE_SYSLOG if (out_filename == NULL) closelog(); +#endif }