From: Lennart Poettering Date: Mon, 24 Apr 2006 21:47:27 +0000 (+0000) Subject: fix compilation if chroot() is not available. (see #32) X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=cc2aa1d778b02c1e5ffdde28cc833e2c9b1cdd36;p=catta fix compilation if chroot() is not available. (see #32) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1200 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-daemon/main.c b/avahi-daemon/main.c index a9dfb42..82a1679 100644 --- a/avahi-daemon/main.c +++ b/avahi-daemon/main.c @@ -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.");