M nix/libstore/build.cc => nix/libstore/build.cc +2 -2
@@ 103,7 103,7 @@ typedef std::shared_ptr<Goal> GoalPtr;
typedef std::weak_ptr<Goal> WeakGoalPtr;
struct CompareGoalPtrs {
- bool operator() (const GoalPtr & a, const GoalPtr & b);
+ bool operator() (const GoalPtr & a, const GoalPtr & b) const;
};
/* Set of goals. */
@@ 201,7 201,7 @@ protected:
};
-bool CompareGoalPtrs::operator() (const GoalPtr & a, const GoalPtr & b) {
+bool CompareGoalPtrs::operator() (const GoalPtr & a, const GoalPtr & b) const {
string s1 = a->key();
string s2 = b->key();
return s1 < s2;
M nix/libstore/store-api.hh => nix/libstore/store-api.hh +1 -0
@@ 4,6 4,7 @@
#include "serialise.hh"
#include <string>
+#include <cstdint>
#include <map>
#include <memory>