]> git.meshlink.io Git - catta/commitdiff
* really fix compilation without DBUS
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Aug 2005 20:04:03 +0000 (20:04 +0000)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Aug 2005 20:04:03 +0000 (20:04 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@430 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-daemon/main.c

index b5cc41e856c7e8f2c8662ca8ae6690ade067565b..6c681fecc63335ab99ea24ff3974da24e7b41877 100644 (file)
@@ -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;