pldmd: instance_id: Fix compilation under GCC 13
GCC 13 appears to have refactored some system headers so make sure to
include what we use[1].
[1]: https://include-what-you-use.org/
Resolves the following errors:
```
[8/113] Compiling C++ object libpldmresponder/test/libpldmresponder_base_test.p/.._.._pldmd_instance_id.cpp.o
FAILED: libpldmresponder/test/libpldmresponder_base_test.p/.._.._pldmd_instance_id.cpp.o
ccache c++ -Ilibpldmresponder/test/libpldmresponder_base_test.p -Irequester -I../requester -Isubprojects/libpldm/include -I../subprojects/libpldm/include -Isubprojects/libpldm/src -I../subprojects/libpldm/src -Isubprojects/libpldm/include/libpldm -I../subprojects/libpldm/include/libpldm -Ilibpldmresponder -I../libpldmresponder -I. -I.. -I../subprojects/googletest/googletest/include -I../subprojects/googletest/googletest -Isubprojects/googletest/__CMake_build -I../subprojects/googletest/__CMake_build -Isubprojects/googletest -I../subprojects/googletest -I../subprojects/googletest/googlemock/include -I../subprojects/googletest/googlemock -I../subprojects/nlohmann-json/single_include -Isubprojects/phosphor-dbus-interfaces/gen -I../subprojects/phosphor-dbus-interfaces/gen -I../subprojects/sdbusplus/include -Isubprojects/phosphor-logging/lib/include -I../subprojects/phosphor-logging/lib/include -Isubprojects/sdeventplus/src -I../subprojects/sdeventplus/src -Isubprojects/stdplus/include -I../subprojects/stdplus/include -Isubprojects/stdplus/include-fd -I../subprojects/stdplus/include-fd -I../subprojects/fmt/include -Isubprojects/fmt/__CMake_build -I../subprojects/fmt/__CMake_build -Isubprojects/fmt -I../subprojects/fmt -I../subprojects/function2/include -Isubprojects/function2/__CMake_build -I../subprojects/function2/__CMake_build -Isubprojects/function2 -I../subprojects/function2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=c++20 -O2 -g -Wno-psabi -DLIBPLDMRESPONDER -DFMT_LOCALE -DBOOST_ASIO_DISABLE_THREADS -DBOOST_ALL_NO_LIB -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_COROUTINES_NO_DEPRECATION_WARNING -pthread -isystem../subprojects/googletest/googletest -isystem../subprojects/googletest/googletest/include -MD -MQ libpldmresponder/test/libpldmresponder_base_test.p/.._.._pldmd_instance_id.cpp.o -MF libpldmresponder/test/libpldmresponder_base_test.p/.._.._pldmd_instance_id.cpp.o.d -o libpldmresponder/test/libpldmresponder_base_test.p/.._.._pldmd_instance_id.cpp.o -c ../pldmd/instance_id.cpp
In file included from ../pldmd/instance_id.cpp:1:
../pldmd/instance_id.hpp:19:5: error: ‘uint8_t’ does not name a type
19 | uint8_t next();
| ^~~~~~~
../pldmd/instance_id.hpp:4:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
3 | #include <bitset>
+++ |+#include <cstdint>
4 |
../pldmd/instance_id.hpp:24:19: error: ‘uint8_t’ has not been declared
24 | void markFree(uint8_t instanceId)
| ^~~~~~~
../pldmd/instance_id.cpp:8:1: error: ‘uint8_t’ does not name a type
8 | uint8_t InstanceId::next()
| ^~~~~~~
../pldmd/instance_id.cpp:4:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
3 | #include <stdexcept>
+++ |+#include <cstdint>
4 |
[9/113] Compiling C++ object libpldmresponder/test/libpldmresponder_base_test.p/.._.._pldmd_dbus_impl_requester.cpp.o
FAILED: libpldmresponder/test/libpldmresponder_base_test.p/.._.._pldmd_dbus_impl_requester.cpp.o
ccache c++ -Ilibpldmresponder/test/libpldmresponder_base_test.p -Irequester -I../requester -Isubprojects/libpldm/include -I../subprojects/libpldm/include -Isubprojects/libpldm/src -I../subprojects/libpldm/src -Isubprojects/libpldm/include/libpldm -I../subprojects/libpldm/include/libpldm -Ilibpldmresponder -I../libpldmresponder -I. -I.. -I../subprojects/googletest/googletest/include -I../subprojects/googletest/googletest -Isubprojects/googletest/__CMake_build -I../subprojects/googletest/__CMake_build -Isubprojects/googletest -I../subprojects/googletest -I../subprojects/googletest/googlemock/include -I../subprojects/googletest/googlemock -I../subprojects/nlohmann-json/single_include -Isubprojects/phosphor-dbus-interfaces/gen -I../subprojects/phosphor-dbus-interfaces/gen -I../subprojects/sdbusplus/include -Isubprojects/phosphor-logging/lib/include -I../subprojects/phosphor-logging/lib/include -Isubprojects/sdeventplus/src -I../subprojects/sdeventplus/src -Isubprojects/stdplus/include -I../subprojects/stdplus/include -Isubprojects/stdplus/include-fd -I../subprojects/stdplus/include-fd -I../subprojects/fmt/include -Isubprojects/fmt/__CMake_build -I../subprojects/fmt/__CMake_build -Isubprojects/fmt -I../subprojects/fmt -I../subprojects/function2/include -Isubprojects/function2/__CMake_build -I../subprojects/function2/__CMake_build -Isubprojects/function2 -I../subprojects/function2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=c++20 -O2 -g -Wno-psabi -DLIBPLDMRESPONDER -DFMT_LOCALE -DBOOST_ASIO_DISABLE_THREADS -DBOOST_ALL_NO_LIB -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_COROUTINES_NO_DEPRECATION_WARNING -pthread -isystem../subprojects/googletest/googletest -isystem../subprojects/googletest/googletest/include -MD -MQ libpldmresponder/test/libpldmresponder_base_test.p/.._.._pldmd_dbus_impl_requester.cpp.o -MF libpldmresponder/test/libpldmresponder_base_test.p/.._.._pldmd_dbus_impl_requester.cpp.o.d -o libpldmresponder/test/libpldmresponder_base_test.p/.._.._pldmd_dbus_impl_requester.cpp.o -c ../pldmd/dbus_impl_requester.cpp
In file included from ../pldmd/dbus_impl_requester.hpp:3,
from ../pldmd/dbus_impl_requester.cpp:1:
../pldmd/instance_id.hpp:19:5: error: ‘uint8_t’ does not name a type
19 | uint8_t next();
| ^~~~~~~
../pldmd/instance_id.hpp:4:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
3 | #include <bitset>
+++ |+#include <cstdint>
4 |
../pldmd/instance_id.hpp:24:19: error: ‘uint8_t’ has not been declared
24 | void markFree(uint8_t instanceId)
| ^~~~~~~
../pldmd/dbus_impl_requester.cpp: In member function ‘virtual uint8_t pldm::dbus_api::Requester::getInstanceId(uint8_t)’:
../pldmd/dbus_impl_requester.cpp:25:23: error: ‘std::map<unsigned char, pldm::InstanceId>::mapped_type’ {aka ‘class pldm::InstanceId’} has no member named ‘next’
25 | id = ids[eid].next();
| ^~~~
[19/113] Compiling C++ object libpldmresponder/libpldmresponder.so.0.1.p/.._host-bmc_dbus_to_host_effecters.cpp.o
ninja: build stopped: subcommand failed.
```
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I8aab8ee5c9b9fe66e868b829342f4c2b071f0127
diff --git a/oem/ibm/libpldmresponder/utils.hpp b/oem/ibm/libpldmresponder/utils.hpp
index 8f9ac47..4a1055e 100644
--- a/oem/ibm/libpldmresponder/utils.hpp
+++ b/oem/ibm/libpldmresponder/utils.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include <cstdint>
#include <string>
namespace pldm
diff --git a/pldmd/instance_id.hpp b/pldmd/instance_id.hpp
index 70b284c..4f88c43 100644
--- a/pldmd/instance_id.hpp
+++ b/pldmd/instance_id.hpp
@@ -1,6 +1,7 @@
#pragma once
#include <bitset>
+#include <cstdint>
namespace pldm
{