summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2014-01-10 14:46:40 +0100
committerRalf Habacker <ralf.habacker@freenet.de>2014-01-10 15:34:11 +0100
commit46f591b2be6f2a05df8dc7251ea44a149ce519e1 (patch)
treeb7523b6a479c175bcaebf3570872ca662a7ee2e7
parent7457a4401188b50e30dccd2f99db9c6289d080a1 (diff)
downloaddbus-46f591b2be6f2a05df8dc7251ea44a149ce519e1.tar.gz
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 <simon.mcvittie@collabora.co.uk>
-rw-r--r--dbus/dbus-spawn.c3
1 files changed, 3 insertions, 0 deletions
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 <errno.h>
#endif
#ifdef HAVE_SYSTEMD
+#ifdef HAVE_SYSLOG_H
+#include <syslog.h>
+#endif
#include <systemd/sd-journal.h>
#endif