Fix include what you use in bmcweb_config.h
As part of rearranging include files, it was found that a couple files
don't include what they use. bmcweb_config.h.in uses size_t, which
isn't in cstdint, and a couple files use variables out of
bmcweb_config.h, which it didn't include.
Tested:
Code compiles; No functional changes.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I6d8f3617d10a30a1f0209e492841e9d3adc9c3f3
diff --git a/bmcweb_config.h.in b/bmcweb_config.h.in
index 394cfdf..2e880fc 100644
--- a/bmcweb_config.h.in
+++ b/bmcweb_config.h.in
@@ -1,6 +1,7 @@
#pragma once
#include <cstdint>
+#include <cstddef>
// clang-format off
constexpr const int bmcwebInsecureDisableXssPrevention =
diff --git a/include/security_headers.hpp b/include/security_headers.hpp
index 6cf2689..966fbdf 100644
--- a/include/security_headers.hpp
+++ b/include/security_headers.hpp
@@ -1,5 +1,7 @@
#pragma once
+#include <bmcweb_config.h>
+
#include <http_response.hpp>
inline void addSecurityHeaders(const crow::Request& req [[maybe_unused]],
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp
index 902c32b..eaedc11 100644
--- a/src/webserver_main.cpp
+++ b/src/webserver_main.cpp
@@ -1,3 +1,4 @@
+#include <bmcweb_config.h>
#include <systemd/sd-daemon.h>
#include <app.hpp>