summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Perkin <jonathan perkin org uk>2012-08-09 12:25:02 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-08-09 12:25:02 +0100
commite98107548c5cd0a9da9d5a15e20177be0e479459 (patch)
tree6b2a4dca91d33977131b2be3f42914d41f08d9a3
parent15e990d68d13ec7df055d7795621f6074f575b32 (diff)
downloaddbus-e98107548c5cd0a9da9d5a15e20177be0e479459.tar.gz
Check HAVE_DECL_LOG_PERROR with #if, not #ifdef
It's always defined. [smcv: commit message added] Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=53286
-rw-r--r--dbus/dbus-sysdeps-util-unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus/dbus-sysdeps-util-unix.c b/dbus/dbus-sysdeps-util-unix.c
index caa38d0e..76423ab8 100644
--- a/dbus/dbus-sysdeps-util-unix.c
+++ b/dbus/dbus-sysdeps-util-unix.c
@@ -424,7 +424,7 @@ _dbus_request_file_descriptor_limit (unsigned int limit)
void
_dbus_init_system_log (void)
{
-#ifdef HAVE_DECL_LOG_PERROR
+#if HAVE_DECL_LOG_PERROR
openlog ("dbus", LOG_PID | LOG_PERROR, LOG_DAEMON);
#else
openlog ("dbus", LOG_PID, LOG_DAEMON);