Fix compile error for !send-to-logger
If `send-to-logger` is disabled, the code fails to compile due to the
previous refactor for clang-tidy.
Tested: Verify the CI passes for both send-to-logger is defined or not
defined.
Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: Ifed296c9ac4890171b09325404d1c797923d61f4
diff --git a/include/sel_logger.hpp b/include/sel_logger.hpp
index 0be63fc..6f4e1e0 100644
--- a/include/sel_logger.hpp
+++ b/include/sel_logger.hpp
@@ -15,6 +15,8 @@
*/
#pragma once
+#include <systemd/sd-journal.h>
+
#include <sdbusplus/asio/connection.hpp>
#include <filesystem>
@@ -41,6 +43,7 @@
static const std::string selLogFilename = "ipmi_sel";
#ifdef SEL_LOGGER_ENABLE_SEL_DELETE
static const std::string nextRecordFilename = "next_records";
+uint16_t getNewRecordId();
#endif
void toHexStr(const std::vector<uint8_t>& data, std::string& hexStr);