Check HAVE_DECL_LOG_PERROR with #if, not #ifdef
authorJonathan Perkin <jonathan perkin org uk>
Thu, 9 Aug 2012 11:25:02 +0000 (12:25 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 9 Aug 2012 11:25:02 +0000 (12:25 +0100)
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

dbus/dbus-sysdeps-util-unix.c

index caa38d0..76423ab 100644 (file)
@@ -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);