[build] fix some include issues

pull/824/merge
Timothy Stack 2 years ago
parent 52fe2db376
commit 20cb489ce3

@ -50,8 +50,12 @@ public:
void detach(T* component) void detach(T* component)
{ {
auto iter = std::find( auto iter = this->b_components.begin();
this->b_components.begin(), this->b_components.end(), component); for (; iter != this->b_components.end(); ++iter) {
if (*iter == component) {
break;
}
}
require(iter != this->b_components.end()); require(iter != this->b_components.end());
this->b_components.erase(iter); this->b_components.erase(iter);

@ -27,6 +27,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <algorithm>
#include "pollable.hh" #include "pollable.hh"
#include "base/lnav_log.hh" #include "base/lnav_log.hh"

@ -30,6 +30,7 @@
#ifndef lnav_pollable_hh #ifndef lnav_pollable_hh
#define lnav_pollable_hh #define lnav_pollable_hh
#include <memory>
#include <vector> #include <vector>
#include <poll.h> #include <poll.h>

Loading…
Cancel
Save