]> git.meshlink.io Git - catta/commitdiff
fix compilation if chroot() is not available. (see #32)
authorLennart Poettering <lennart@poettering.net>
Mon, 24 Apr 2006 21:47:27 +0000 (21:47 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 24 Apr 2006 21:47:27 +0000 (21:47 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1200 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-daemon/main.c

index a9dfb42457838f3cf009b3522e1cb76eddb7ef02..82a1679a9e1b05daa4677d7921e36f0b4e6202e0 100644 (file)
@@ -743,7 +743,11 @@ static int run_server(DaemonConfig *c) {
 
 #ifdef HAVE_DBUS
     if (c->enable_dbus) {
-        if (dbus_protocol_setup(poll_api, config.disable_user_service_publishing, !c->fail_on_missing_dbus && !config.use_chroot) < 0) {
+        if (dbus_protocol_setup(poll_api, config.disable_user_service_publishing, !c->fail_on_missing_dbus
+#ifdef ENABLE_CHROOT
+                                && !config.use_chroot
+#endif
+            ) < 0) {
 
             avahi_log_warn("WARNING: Failed to contact D-BUS daemon.");