Fix outdated boost header include
This commit fixes the header include paths from boost library which are
no longer valid.
Change-Id: I2adf06d46f3f597c16e013e54eaedcd2cb0ad42f
Signed-off-by: Chau Ly <chaul@amperecomputing.com>
diff --git a/src/oemcommands.cpp b/src/oemcommands.cpp
index 2e81bd4..ea5eb12 100644
--- a/src/oemcommands.cpp
+++ b/src/oemcommands.cpp
@@ -23,8 +23,8 @@
#include <appcommands.hpp>
#include <boost/container/flat_map.hpp>
-#include <boost/process/child.hpp>
-#include <boost/process/io.hpp>
+#include <boost/process/v1/child.hpp>
+#include <boost/process/v1/io.hpp>
#include <com/intel/Control/OCOTShutdownPolicy/server.hpp>
#include <commandutils.hpp>
#include <gpiod.hpp>
@@ -1386,7 +1386,7 @@
static uint8_t executeCmd(const char* path)
{
- boost::process::child execProg(path);
+ boost::process::v1::child execProg(path);
execProg.wait();
int retCode = execProg.exit_code();
@@ -1582,11 +1582,12 @@
*dataLen = 0;
- boost::process::ipstream is;
+ boost::process::v1::ipstream is;
std::vector<std::string> data;
std::string line;
- boost::process::child c1(fwGetEnvCmd, "-n", fwHostSerailCfgEnvName,
- boost::process::std_out > is);
+ boost::process::v1::child c1(fwGetEnvCmd, "-n",
+ fwHostSerailCfgEnvName,
+ boost::process::v1::std_out > is);
while (c1.running() && std::getline(is, line) && !line.empty())
{
@@ -1657,8 +1658,8 @@
return ipmi::ccInvalidFieldRequest;
}
- boost::process::child c1(fwSetEnvCmd, fwHostSerailCfgEnvName,
- std::to_string(req->parameter));
+ boost::process::v1::child c1(fwSetEnvCmd, fwHostSerailCfgEnvName,
+ std::to_string(req->parameter));
c1.wait();
if (c1.exit_code())