From 46f591b2be6f2a05df8dc7251ea44a149ce519e1 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Fri, 10 Jan 2014 14:46:40 +0100 Subject: [PATCH] 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 --- dbus/dbus-spawn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dbus/dbus-spawn.c b/dbus/dbus-spawn.c index 653776b5..b95cad6e 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