hsbp-manager: fix build against latest sdbusplus
sdbusplus headers changed and now we need to explicitly include the
match header.
Tested: Build succeeds.
Signed-off-by: Jonathan Doman <jonathan.doman@intel.com>
Change-Id: I9cd2b12f251434351e5f4f0b92bdf771c6958827
diff --git a/hsbp-manager/include/utils.hpp b/hsbp-manager/include/utils.hpp
index c333089..73bd957 100644
--- a/hsbp-manager/include/utils.hpp
+++ b/hsbp-manager/include/utils.hpp
@@ -23,6 +23,7 @@
#include <cstdint>
#include <iostream>
#include <sdbusplus/asio/connection.hpp>
+#include <sdbusplus/bus/match.hpp>
#include <string>
#include <variant>
#include <vector>
@@ -114,7 +115,7 @@
} // namespace hsbp
-static std::unique_ptr<sdbusplus::bus::match::match> powerMatch = nullptr;
+static std::unique_ptr<sdbusplus::bus::match_t> powerMatch = nullptr;
static bool powerStatusOn = false;
bool isPowerOn(void)
@@ -136,7 +137,7 @@
return;
}
- powerMatch = std::make_unique<sdbusplus::bus::match::match>(
+ powerMatch = std::make_unique<sdbusplus::bus::match_t>(
static_cast<sdbusplus::bus::bus&>(*conn),
"type='signal',interface='" + std::string(properties::interface) +
"',path='" + std::string(power::path) + "',arg0='" +