From: Ralf Habacker Date: Fri, 10 Jan 2014 13:46:40 +0000 (+0100) Subject: Fix compile error on opensuse 12.2 with systemd 44 and glibc-2.15. X-Git-Tag: dbus-1.8.0~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46f591b2be6f2a05df8dc7251ea44a149ce519e1;p=thirdparty%2Fdbus.git Fix compile error on opensuse 12.2 with systemd 44 and glibc-2.15. The specific systemd/glibc version do not include syslog.h by default. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73455 Reviewed-by: Simon McVittie --- diff --git a/dbus/dbus-spawn.c b/dbus/dbus-spawn.c index 653776b54..b95cad6e3 100644 --- a/dbus/dbus-spawn.c +++ b/dbus/dbus-spawn.c @@ -39,6 +39,9 @@ #include #endif #ifdef HAVE_SYSTEMD +#ifdef HAVE_SYSLOG_H +#include +#endif #include #endif