diff --git a/src/event/TimerList.cxx b/src/event/TimerList.cxx index a5b19a577..9d3ab9a3f 100644 --- a/src/event/TimerList.cxx +++ b/src/event/TimerList.cxx @@ -2,13 +2,9 @@ // Copyright CM4all GmbH // author: Max Kellermann <mk@cm4all.com> -#include "Loop.hxx" +#include "TimerList.hxx" #include "FineTimerEvent.hxx" -#ifdef NO_BOOST -#include <algorithm> -#endif - constexpr bool TimerList::Compare::operator()(const FineTimerEvent &a, const FineTimerEvent &b) const noexcept diff --git a/src/util/IntrusiveSortedList.hxx b/src/util/IntrusiveSortedList.hxx index 19e9f482e..cd029aa52 100644 --- a/src/util/IntrusiveSortedList.hxx +++ b/src/util/IntrusiveSortedList.hxx @@ -5,6 +5,8 @@ #include "IntrusiveList.hxx" +#include <algorithm> // for std::find_if() + /** * A variant of #IntrusiveList which is sorted automatically. There * are obvious scalability problems with this approach, so use with