host-transport: pldm: default: Added missing header
Added missing header file inclusion to fix compilation error when
using "host-transport" option alone to get default pldm behaviour
to do required host dump action.
Error 1: 'uint32_t' was not declared in this scope
Fixed by using `#include <stdint.h>`
Error 2: 'runtime_error' is not a member of 'std'
Fixed by using `#include <stdexcept>`
TestedBy:
- meson builddir -Dhost-transport=pldm
ninja -C builddir
Signed-off-by: Ramesh Iyyar <rameshi1@in.ibm.com>
Change-Id: I136defcf5f45a6f15be41e11e792091e103ce2c3
diff --git a/host-transport-extensions/pldm/default/pldm_interface.cpp b/host-transport-extensions/pldm/default/pldm_interface.cpp
index 7d7139d..f432b03 100644
--- a/host-transport-extensions/pldm/default/pldm_interface.cpp
+++ b/host-transport-extensions/pldm/default/pldm_interface.cpp
@@ -1,5 +1,9 @@
// SPDX-License-Identifier: Apache-2.0
+#include <stdint.h>
+
+#include <stdexcept>
+
namespace phosphor
{
namespace dump