From 4f879ea3c946e9676228b51e6f04944bf9c70137 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 23 Aug 2005 20:04:03 +0000 Subject: [PATCH] * really fix compilation without DBUS git-svn-id: file:///home/lennart/svn/public/avahi/trunk@430 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-daemon/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/avahi-daemon/main.c b/avahi-daemon/main.c index b5cc41e..6c681fe 100644 --- a/avahi-daemon/main.c +++ b/avahi-daemon/main.c @@ -607,6 +607,7 @@ static int run_server(DaemonConfig *c) { } #else avahi_log_warn("WARNING: We are configured to enable D-BUS but it was not compiled in"); + c->enabled_dbus = 0; #endif } @@ -847,6 +848,9 @@ int main(int argc, char *argv[]) { #ifdef HAVE_DBUS config.enable_dbus = 1; config.fail_on_missing_dbus = 1; +#else + config.enable_dbus = 0; + config.fail_on_missing_dbus = 0; #endif config.drop_root = 1; config.publish_dns_servers = NULL; -- 2.39.5