chiark / gitweb /
bus: do kdbus only if this is enabled on the configure switch
[elogind.git] / src / core / manager.c
index 7de0b268112af4a05d02ff3b59b2ccc6f08fe819..badf19e9548c91b4f801169d8244e97f406f200f 100644 (file)
@@ -414,6 +414,7 @@ static int manager_setup_kdbus(Manager *m) {
 
         assert(m);
 
+#ifdef ENABLE_KDBUS
         if (m->kdbus_fd >= 0)
                 return 0;
 
@@ -428,6 +429,8 @@ static int manager_setup_kdbus(Manager *m) {
         }
 
         log_info("Successfully set up kdbus on %s", p);
+#endif
+
         return 0;
 }