From e98107548c5cd0a9da9d5a15e20177be0e479459 Mon Sep 17 00:00:00 2001 From: Jonathan Perkin Date: Thu, 9 Aug 2012 12:25:02 +0100 Subject: [PATCH] Check HAVE_DECL_LOG_PERROR with #if, not #ifdef It's always defined. [smcv: commit message added] Reviewed-by: Simon McVittie Bug: https://bugs.freedesktop.org/show_bug.cgi?id=53286 --- dbus/dbus-sysdeps-util-unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus/dbus-sysdeps-util-unix.c b/dbus/dbus-sysdeps-util-unix.c index caa38d0ef..76423ab85 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); -- 2.47.3