summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nix/libstore/build.cc4
-rw-r--r--nix/libstore/store-api.hh1
2 files changed, 3 insertions, 2 deletions
diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc
index 9701af8079e..993876c6d10 100644
--- a/nix/libstore/build.cc
+++ b/nix/libstore/build.cc
@@ -103,7 +103,7 @@ typedef std::shared_ptr<Goal> GoalPtr;
103typedef std::weak_ptr<Goal> WeakGoalPtr; 103typedef std::weak_ptr<Goal> WeakGoalPtr;
104 104
105struct CompareGoalPtrs { 105struct CompareGoalPtrs {
106 bool operator() (const GoalPtr & a, const GoalPtr & b); 106 bool operator() (const GoalPtr & a, const GoalPtr & b) const;
107}; 107};
108 108
109/* Set of goals. */ 109/* Set of goals. */
@@ -201,7 +201,7 @@ protected:
201}; 201};
202 202
203 203
204bool CompareGoalPtrs::operator() (const GoalPtr & a, const GoalPtr & b) { 204bool CompareGoalPtrs::operator() (const GoalPtr & a, const GoalPtr & b) const {
205 string s1 = a->key(); 205 string s1 = a->key();
206 string s2 = b->key(); 206 string s2 = b->key();
207 return s1 < s2; 207 return s1 < s2;
diff --git a/nix/libstore/store-api.hh b/nix/libstore/store-api.hh
index 82a79e50e2c..32a8f2c795f 100644
--- a/nix/libstore/store-api.hh
+++ b/nix/libstore/store-api.hh
@@ -4,6 +4,7 @@
4#include "serialise.hh" 4#include "serialise.hh"
5 5
6#include <string> 6#include <string>
7#include <cstdint>
7#include <map> 8#include <map>
8#include <memory> 9#include <memory>
9 10