aboutsummaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-04-22 11:31:06 +0200
committerAnton Khirnov <anton@khirnov.net>2013-11-04 11:02:10 +0100
commit6fd304e5e6c8b386d3671f4932a74124fd37192a (patch)
tree0110c5339a4fe42276017f1fd74373baa1e25f22 /src/log.c
parentd3018bfbb5f5712e6fe0f7ce534a362a0518d2c2 (diff)
Switch from autotools to a custom build system adapted from Libav.
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/log.c b/src/log.c
index 86dd86ea..aa19e80f 100644
--- a/src/log.c
+++ b/src/log.c
@@ -37,7 +37,7 @@
#include <errno.h>
#include <glib.h>
-#ifdef HAVE_SYSLOG
+#if HAVE_SYSLOG
#include <syslog.h>
#endif
@@ -149,7 +149,7 @@ log_init_file(const char *path, unsigned line, GError **error_r)
return true;
}
-#ifdef HAVE_SYSLOG
+#if HAVE_SYSLOG
static int
glib_to_syslog_level(GLogLevelFlags log_level)
@@ -254,7 +254,7 @@ log_init(bool verbose, bool use_stdout, GError **error_r)
} else {
param = config_get_param(CONF_LOG_FILE);
if (param == NULL) {
-#ifdef HAVE_SYSLOG
+#if HAVE_SYSLOG
/* no configuration: default to syslog (if
available) */
log_init_syslog();
@@ -265,7 +265,7 @@ log_init(bool verbose, bool use_stdout, GError **error_r)
CONF_LOG_FILE);
return false;
#endif
-#ifdef HAVE_SYSLOG
+#if HAVE_SYSLOG
} else if (strcmp(param->value, "syslog") == 0) {
log_init_syslog();
return true;
@@ -333,7 +333,7 @@ void close_log_files(void)
if (stdout_mode)
return;
-#ifdef HAVE_SYSLOG
+#if HAVE_SYSLOG
if (out_filename == NULL)
closelog();
#endif