Skip to content

Commit

Permalink
Add missing includes
Browse files Browse the repository at this point in the history
Summary:
As per title, needed for coming changes.

They are fixed by core in commit
bitcoin/bitcoin@c2bd588
from the very unrelated [[bitcoin/bitcoin#17996 | PR17996]], but since this PR has an infinite depth
of dependencies I just cherry pick this commit for now.

Test Plan:
  ninja all check

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D5990
  • Loading branch information
practicalswift authored and Fabcien committed May 7, 2020
1 parent 7dce6a5 commit 8d33df9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/indirectmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#ifndef BITCOIN_INDIRECTMAP_H
#define BITCOIN_INDIRECTMAP_H

#include <map>

template <class T> struct DereferencingComparator {
bool operator()(const T a, const T b) const { return *a < *b; }
};
Expand Down
2 changes: 2 additions & 0 deletions src/memusage.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
#define BITCOIN_MEMUSAGE_H

#include <indirectmap.h>
#include <prevector.h>

#include <cassert>
#include <cstdlib>
#include <map>
#include <memory>
Expand Down

0 comments on commit 8d33df9

Please sign in to comment.