]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Fix compile error on opensuse 12.2 with systemd 44 and glibc-2.15.
authorRalf Habacker <ralf.habacker@freenet.de>
Fri, 10 Jan 2014 13:46:40 +0000 (14:46 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Fri, 10 Jan 2014 14:34:11 +0000 (15:34 +0100)
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>
dbus/dbus-spawn.c

index 653776b54cd81ed2e5e5e0095514ac3c5eef7da0..b95cad6e3fb4b82e936cb6dfa567943b2b903b19 100644 (file)
@@ -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