update_engine: Fix compile errors on Chrome OS
Some members of update engine's Daemon class was declared only for
__BRILLO__ but used in Chrome OS (where USE_DBUS is defined) resulting
in build errors. Fixing those.
Change-Id: I8b59aa43be2cc906c51b7376029239e4e5e4350e
diff --git a/daemon.h b/daemon.h
index 89137ed..5050f38 100644
--- a/daemon.h
+++ b/daemon.h
@@ -39,7 +39,7 @@
#if USE_DBUS
#include "update_engine/dbus_service.h"
#endif // USE_DBUS
-#ifdef __BRILLO__
+#if defined(__BRILLO__) || defined(USE_DBUS)
#include "update_engine/real_system_state.h"
#endif // defined(__BRILLO__)
@@ -81,7 +81,7 @@
#endif // defined(__BRILLO__)
#endif // USE_BINDER
-#ifdef __BRILLO__
+#if defined(__BRILLO__) || defined(USE_DBUS)
// The RealSystemState uses the previous classes so it should be defined last.
std::unique_ptr<RealSystemState> real_system_state_;
#else // !defined(__BRILLO__)