From f954c50e74af98e9a3ea22454a8907b7419d1f8e Mon Sep 17 00:00:00 2001 From: nsurbay <21074287+nsurbay@users.noreply.github.com> Date: Sat, 27 Jul 2024 10:59:10 +0200 Subject: [PATCH] Fix header when compile with LIEF_EXTERNAL_SPDLOG=ON (#1080) * Fix header when compile with LIEF_EXTERNAL_SPDLOG The header can be missing and std::remove_if may not be found in DynamicEntryArray.cpp and DynamicEntryRunPath.cpp. This is the case when compiled with LIEF_EXTERNAL_SPDLOG=ON and fetch spdlog using FetchContent with the option OVERRIDE_FIND_PACKAGE. --------- Co-authored-by: Romain Thomas Co-authored-by: Romain Thomas <7450402+romainthomas@users.noreply.github.com> --- doc/sphinx/changelog.rst | 1 + src/ELF/DynamicEntryArray.cpp | 2 ++ src/ELF/DynamicEntryRunPath.cpp | 1 + 3 files changed, 4 insertions(+) diff --git a/doc/sphinx/changelog.rst b/doc/sphinx/changelog.rst index 230d4495d1..75a83c617a 100644 --- a/doc/sphinx/changelog.rst +++ b/doc/sphinx/changelog.rst @@ -9,6 +9,7 @@ Changelog * Add support for the ``LC_SUBCLIENT`` command: :class:`lief.MachO.SubClient` * Add support for the ``LC_ROUTINE/LC_ROUTINE64`` command: :class:`lief.MachO.Routine` + 0.15.1 - July 23th, 2024 ------------------------ diff --git a/src/ELF/DynamicEntryArray.cpp b/src/ELF/DynamicEntryArray.cpp index c6fa7130ed..4e1bec392f 100644 --- a/src/ELF/DynamicEntryArray.cpp +++ b/src/ELF/DynamicEntryArray.cpp @@ -18,6 +18,8 @@ #include "logging.hpp" +#include + namespace LIEF { namespace ELF { diff --git a/src/ELF/DynamicEntryRunPath.cpp b/src/ELF/DynamicEntryRunPath.cpp index e0838401bc..c6758fbd21 100644 --- a/src/ELF/DynamicEntryRunPath.cpp +++ b/src/ELF/DynamicEntryRunPath.cpp @@ -17,6 +17,7 @@ #include "LIEF/Visitor.hpp" #include "logging.hpp" +#include #include #include