From: Jonathan Perkin Date: Thu, 9 Aug 2012 11:25:02 +0000 (+0100) Subject: Check HAVE_DECL_LOG_PERROR with #if, not #ifdef X-Git-Tag: dbus-1.6.6~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e98107548c5cd0a9da9d5a15e20177be0e479459;p=thirdparty%2Fdbus.git 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 --- 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);