From cc2aa1d778b02c1e5ffdde28cc833e2c9b1cdd36 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 24 Apr 2006 21:47:27 +0000 Subject: [PATCH] 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 --- avahi-daemon/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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."); -- 2.39.5